MY ROBOTS

ABSOLUTELY EVERYTHING ABOUT YOUR ARMY OF ROBOTS
  • # 352
    Sasaky
    created 09/11/17 23 code lines fight fork
    1516 SCORE
    4 KILLS
    65 SHOTS
    42 HITS
    63.64%
    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.rotateCannon(); }; Robot.prototype.onScannedRobot = function(ev) { var robot = ev.robot; robot.fire(); robot.ahead(100); robot.rotateCannon(); robot.back(100); robot.rotateCannon(); };