MY ROBOTS

ABSOLUTELY EVERYTHING ABOUT YOUR ARMY OF ROBOTS
  • # 23899
    ChaseBot67
    created 03/04/17 27 code lines fight fork
    1490 SCORE
    0 KILLS
    13 SHOTS
    13 HITS
    92.86%
    AVERAGE HITS/SHOT
    SCORE OVER TIME
    //FightCode can only understand your robot //if its class is called Robot var Robot = function(robot) { }; var noRobotSeen = 0; Robot.prototype.onIdle = function(ev) { var robot = ev.robot; robot.turnRight(5); noRobotSeen = noRobotSeen + 1 if (noRobotSeen = 4) { noRobotSeen = 0; while (onScannedRobot = false) robot.turnLeft(5); } }; Robot.prototype.onScannedRobot = function(ev) { var robot = ev.robot; robot.ahead(); robot.fire(); };
  • # 25442
    D80-2 V.2
    created 03/04/17 40 code lines fight fork
    -15 SCORE
    0 KILLS
    9 SHOTS
    9 HITS
    90.00%
    AVERAGE HITS/SHOT
    SCORE OVER TIME
    //FightCode can only understand your robot //if its class is called Robot var Robot = function(r) { }; Robot.prototype.onIdle = function(ev) { var r = ev.robot; r.clone(); r.rotateCannon(360); r.ahead(150); r.turn(30); r.ahead(150); }; Robot.prototype.onScannedRobot = function(ev) { var r = ev.robot; if (ev.scannedRobot.parentId == r.id || ev.scannedRobot.id == r.parentId) { return; }; r.rotateCannon(2); r.fire(); r.turn(8); r.rotateCannon(-20); r.ahead(15); }; Robot.prototype.onHitByBullet = function(ev) { var r = ev.robot; r.disappear(); }; Robot.prototype.onWallCollision = function(ev) { var r = ev.robot; r.back(50); }; Robot.prototype.onRobotCollision = function(ev) { var r = ev.robot; r.back(30); };
  • # 24839
    FirstBot67
    created 03/04/17 20 code lines fight
    1430 SCORE
    0 KILLS
    39 SHOTS
    24 HITS
    60.00%
    AVERAGE HITS/SHOT
    SCORE OVER TIME
  • # 25450
    MR RAZEM V2
    created 03/04/17 25 code lines fight fork
    -15 SCORE
    0 KILLS
    8 SHOTS
    5 HITS
    55.56%
    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(100); robot.back(50); robot.turnRight(90); }; Robot.prototype.onScannedRobot = function(ev) { var robot = ev.robot; robot.stop(); robot.fire(); }; Robot.prototype.onRobotCollision = function(ev) { var robot = ev.robot; robot.turn(15); robot.ahead(100); }
  • none
    Rybot
    created 03/04/17 20 code lines fight 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.ahead(100); robot.rotateCannon(80); robot.back(100); robot.rotateCannon(80); }; Robot.prototype.onScannedRobot = function(ev) { var robot = ev.robot; robot.fire(); };