I hereby claim:
- I am omichel on github.
- I am omichel (https://keybase.io/omichel) on keybase.
- I have a public key ASCPHAr3MQGXrX-KORtpHRRyjr-Fk0W545RDYQC26tvXSwo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
var RobotState = function () { | |
data = {}; | |
data.isLookingAtTarget = false; | |
return data; | |
}; | |
var goodRobot = RobotState(); | |
var evilRobot = RobotState(); |
//FightCode can only understand your robot | |
//if its class is called Robot | |
var Robot = function(robot) { | |
}; | |
Robot.prototype.onIdle = function(ev) { | |
var robot = ev.robot; | |
robot.ahead(100); |