Skip to content

Instantly share code, notes, and snippets.

@Mr0ok
Created December 6, 2012 19:16
Show Gist options
  • Save Mr0ok/4227365 to your computer and use it in GitHub Desktop.
Save Mr0ok/4227365 to your computer and use it in GitHub Desktop.
MR #9
//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.prototype.onScannedRobot = function(ev) {
var robot = ev.robot;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment