Skip to content

Instantly share code, notes, and snippets.

View leonicolas's full-sized avatar
🎯
Working hard

Leonardo Berardino leonicolas

🎯
Working hard
  • Groundswell Cloud Solutions
  • Canada
View GitHub Profile
@leonicolas
leonicolas / robot.js
Created December 2, 2012 22:34
OSMARVOLTA
//FightCode can only understand your robot
//if its class is called Robot
var Robot = function(robot) {
this.scanningMode = true;
this.cannonRotateSignal = 1;
};
Robot.prototype.onIdle = function(ev) {
var robot = ev.robot;