MY ROBOTS

ABSOLUTELY EVERYTHING ABOUT YOUR ARMY OF ROBOTS
  • none
    derp
    created 12/06/12 0 code lines fight fork
    1500 SCORE
    0 KILLS
    0 SHOTS
    0 HITS
    0.00%
    AVERAGE HITS/SHOT
    SCORE OVER TIME
    None
  • none
    derp
    created 12/06/12 0 code lines fight fork
    1500 SCORE
    0 KILLS
    0 SHOTS
    0 HITS
    0.00%
    AVERAGE HITS/SHOT
    SCORE OVER TIME
    None
  • # 23729
    HappyRobot
    created 12/06/12 56 code lines fight fork
    1467 SCORE
    1 KILLS
    195 SHOTS
    29 HITS
    14.80%
    AVERAGE HITS/SHOT
    SCORE OVER TIME
    //FightCode can only understand your robot //if its class is called Robot var Robot = function(robot) { }; Robot.prototype.onWallCollision = function(ev) { var robot = ev.robot; robot.back(30); robot.turn(40); robot.ahead(50); robot.rotateCannon(30); }; Robot.prototype.onRobotCollision = function(ev) { var robot = ev.robot; robot.turn(20); robot.back(100); // trying to run away }; Robot.prototype.onIdle = function(ev) { var robot = ev.robot; robot.fire(); robot.ahead(30); robot.rotateCannon(30); }; Robot.prototype.onScannedRobot = function(ev) { var robot = ev.robot; robot.fire(); robot.ahead(10); robot.fire(); robot.ahead(10); robot.fire(); robot.ahead(10); robot.fire(); robot.ahead(10); robot.fire(); robot.ahead(10); robot.fire(); robot.ahead(10); }; Robot.prototype.onHitByBullet = function(ev) { robot.ahead(100); robot.rotateCannon(90); }