MY ROBOTS

ABSOLUTELY EVERYTHING ABOUT YOUR ARMY OF ROBOTS
  • # 273
    Pecheneg
    created 03/28/13 106 code lines fight
    1548 SCORE
    33 KILLS
    603 SHOTS
    272 HITS
    45.03%
    AVERAGE HITS/SHOT
    SCORE OVER TIME
  • none
    PECHENEG 1000
    created 05/15/18 38 code lines fight fork
    1500 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 DELTA_TURN = 15; var DELTA_MOVE = 30; var enemyDetected = 0; var t = 0; var timer = 0; var Robot = function(robot) { }; Robot.prototype.onIdle = function(ev) { var robot = ev.robot; t++; if (t > 1000000){ t = 0; } if (enemyDetected || ( timer != 0 &&t >= timer)){ robot.fire(); return; } enemyDetected = 0; robot.rotateCannon(5); }; Robot.prototype.onScannedRobot = function(ev) { var robot = ev.robot; //robot.fire(); enemyDetected = 1; timer = t + 10; };
  • none
    TimeToFeed
    created 03/27/13 69 code lines fight
    1500 SCORE
    0 KILLS
    0 SHOTS
    0 HITS
    0.00%
    AVERAGE HITS/SHOT
    SCORE OVER TIME