Skip to content

Instantly share code, notes, and snippets.

@lekoder
Created December 4, 2012 15:50
Show Gist options
  • Save lekoder/4205370 to your computer and use it in GitHub Desktop.
Save lekoder/4205370 to your computer and use it in GitHub Desktop.
Aimbot
//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.turn(10);
robot.rotateCannon(10);
};
Robot.prototype.onScannedRobot = function(ev) {
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment