MY ROBOTS

ABSOLUTELY EVERYTHING ABOUT YOUR ARMY OF ROBOTS
  • # 24026
    Fibrobot
    created 03/01/13 28 code lines fight fork
    1478 SCORE
    7 KILLS
    162 SHOTS
    91 HITS
    55.83%
    AVERAGE HITS/SHOT
    SCORE OVER TIME
    //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(10); robot.turn(10); robot.ahead(20); robot.turn(20); robot.ahead(30); robot.turn(30); robot.ahead(10); robot.turn(10); robot.ahead(10); robot.turn(10); robot.rotateCannon(-20); robot.back(0); }; Robot.prototype.onScannedRobot = function(ev) { var robot = ev.robot; robot.fire(10); };