MY ROBOTS

ABSOLUTELY EVERYTHING ABOUT YOUR ARMY OF ROBOTS
  • # 16292
    noise
    created 08/28/14 28 code lines
    1454 SCORE
    2 KILLS
    411 SHOTS
    27 HITS
    6.55%
    AVERAGE HITS/SHOT
    SCORE OVER TIME
  • none
    PUBLIC STATIC FUNCTION
    created 08/30/14 25 code lines fork
    0 SCORE
    0 KILLS
    0 SHOTS
    0 HITS
    0.00%
    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.clone(); robot.ahead(50); robot.rotateCannon(90); robot.turnLeft(90); robot.ahead(50); robot.rotateCannon(180); }; Robot.prototype.onScannedRobot = function(ev) { var robot = ev.robot; robot.fire(); robot.fire(); robot.fire(); robot.bakc(50); };