MY ROBOTS

ABSOLUTELY EVERYTHING ABOUT YOUR ARMY OF ROBOTS
  • # 3484
    Accurate Destruction
    created 07/25/13 107 code lines
    1538 SCORE
    82 KILLS
    3,027 SHOTS
    806 HITS
    26.62%
    AVERAGE HITS/SHOT
    SCORE OVER TIME
  • # 15276
    Coolbot 9000
    created 12/04/12 0 code lines fork
    1463 SCORE
    64 KILLS
    1,431 SHOTS
    575 HITS
    40.15%
    AVERAGE HITS/SHOT
    SCORE OVER TIME
    //FightCode can only understand your robot //if its class is called Robot var id; var Robot = function(robot) { id = this.id; }; Robot.prototype.onIdle = function(ev) { var robot = ev.robot; robot.ahead(50); robot.life = 100; robot.turn(90); robot.log(robot); if (robot.parentId != id) { robot.rotateCannon(45); robot.rotateCannon(90); robot.turn(60); robot.ahead(250); return; } }; Robot.prototype.onScannedRobot = function(ev) { var robot = ev.robot; var scannedRobot = ev.scannedRobot; if (scannedRobot.parentId == robot.id || scannedRobot.id == robot.parentId) { return; } if (robot.parentId == id) { robot.fire(); robot.stop(); robot.rotateCannon(40); robot.stop(); robot.fire(); robot.stop(); robot.ahead(10); robot.fire(); robot.turn(-30); robot.ahead(10); return; } for (var i=0; i<10; i++) { robot.fire(); robot.stop(); robot.fire(); robot.stop(); robot.ahead(10); robot.fire(); robot.turn(-30); robot.ahead(10); } return; }; Robot.prototype.onWallCollision = function(ev) { var robot = ev.robot; robot.back(150); robot.turn(60); }; Robot.prototype.onRobotCollision = function(ev) { var robot = ev.robot; robot.back(150); robot.turn(60); };
  • # 3008
    Out Of Cheese Error v2.0
    created 12/04/12 0 code lines fork
    1550 SCORE
    122 KILLS
    2,496 SHOTS
    1,150 HITS
    46.06%
    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(90); robot.turn(80); robot.rotateCannon(90); }; Robot.prototype.onScannedRobot = function(ev) { var robot = ev.robot; robot.stop(); robot.fire(3); robot.fire(5); robot.rotateCannon(-30); };
  • # 13174
    Robot01
    created 12/03/12 23 code lines fork
    1478 SCORE
    22 KILLS
    635 SHOTS
    246 HITS
    38.68%
    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(30); robot.rotateCannon(35); robot.back(30); robot.rotateCannon(35); }; Robot.prototype.onScannedRobot = function(ev) { var robot = ev.robot; robot.fire(); robot.back(170); robot.rotateCannon(-35); };
  • # 2207
    Robot02
    created 12/04/12 97 code lines fork
    1573 SCORE
    34 KILLS
    1,001 SHOTS
    277 HITS
    27.64%
    AVERAGE HITS/SHOT
    SCORE OVER TIME
    //FightCode can only understand your robot //if its class is called Robot var Robot = function(robot) { }, hasTarget = false, emergency = false; Robot.prototype.onIdle = function(ev) { var robot = ev.robot; //robot.stop(); //robot.log( hasTarget + '|' + emergency ); robot.clone(); if ( !hasTarget ){ robot.turn(23); robot.ahead(20); robot.rotateCannon(15); } else if ( !emergency ) { robot.ahead(5); } else { robot.rotateCannon(10); } }; Robot.prototype.onScannedRobot = function(ev) { var robot = ev.robot, target = ev.scannedRobot; //robot.stop(); if ( target.parentId == robot.id || target.id == robot.parentId ){ robot.turn(90); robot.ahead(150); return; } hasTarget = true; /*robot.stop(); robot.fire(); robot.fire(); robot.back(42); robot.turn(2); robot.fire();*/ robot.stop(); robot.fire(); for (var i = 0; i < 3; i++){ robot.turn(20); robot.ahead(18); robot.turn(-20); robot.fire(); } hasTarget = false; }; Robot.prototype.onWallCollision = function(ev){ var robot = ev.robot; emergency = true; //robot.stop(); robot.back(150); robot.turn(60); robot.rotateCannon(48); robot.ahead(135); hasTarget = false; emergency = false; } Robot.prototype.onHitByBullet = function(ev){ var robot = ev.robot; //robot.stop(); robot.turn(ev.bearing + 45); robot.ahead(100); robot.turn(-45); robot.fire(); robot.turn(-10); robot.fire(); } Robot.prototype.onRobotCollision = function(ev){ var robot = ev.robot; emergency = true; //robot.stop(); robot.back(150); robot.rotateCannon(ev.bearing); robot.turn(ev.bearing + 15); robot.fire(); robot.turn(60); robot.rotateCannon(21); robot.ahead(130) hasTarget = false; emergency = false; }
  • # 13223
    Robot03
    created 12/04/12 55 code lines fork
    1478 SCORE
    11 KILLS
    352 SHOTS
    129 HITS
    36.54%
    AVERAGE HITS/SHOT
    SCORE OVER TIME
    //FightCode can only understand your robot //if its class is called Robot var id, Robot = function(robot) { id = this.id; }, hasTarget = false, time = 0; Robot.prototype.onIdle = function(ev) { var robot = ev.robot; if ( !hasTarget ){ robot.log(robot.arenaWidth + 'x' + robot.arenaHeight); robot.ahead(30); robot.rotateCannon(35); robot.back(30); robot.rotateCannon(35); } else { if ( robot.gunCoolDownTime == 0 ){ robot.rotateCannon(19); time++; } if (time % 21 == 0){ robot.turn(21); robot.ahead(200); } } }; Robot.prototype.onScannedRobot = function(ev) { var robot = ev.robot, target = ev.scannedRobot; hasTarget = true; robot.stop(); robot.fire(); }; Robot.prototype.onWallCollision = function(ev){ var robot = ev.robot; robot.back(375); } Robot.prototype.onHitByBullet = function(ev){ var robot = ev.robot; robot.turn(ev.bearing + 90); robot.ahead(100); } Robot.prototype.onRobotCollision = function(ev){ var robot = ev.robot; robot.turn(32); robot.ahead(100); }
  • # 3454
    Robot04
    created 12/05/12 43 code lines fork
    1539 SCORE
    18 KILLS
    369 SHOTS
    166 HITS
    44.86%
    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(360); }; Robot.prototype.onScannedRobot = function(ev) { var robot = ev.robot; robot.stop(); robot.fire(); for (var i = 0; i < 3; i++){ robot.turn(20); robot.ahead(18); robot.turn(-20); robot.fire(); } }; Robot.prototype.onWallCollision = function(ev){ var robot = ev.robot; robot.turn(ev.bearing + 95); robot.ahead(180); robot.turn(85 - ev.bearing); }; Robot.prototype.onHitByBullet = function(ev){ var robot = ev.robot; robot.stop(); robot.ahead(300); robot.turn(ev.bearing + 50); robot.ahead(180); robot.turn(-50); robot.fire(); robot.fire(); robot.turn(-15); robot.fire(); };
  • # 4011
    Smartbot Alpha
    created 12/06/12 145 code lines
    1523 SCORE
    20 KILLS
    571 SHOTS
    209 HITS
    36.54%
    AVERAGE HITS/SHOT
    SCORE OVER TIME
  • # 12977
    Smartbot Beta
    created 07/22/13 103 code lines
    1482 SCORE
    24 KILLS
    660 SHOTS
    297 HITS
    44.93%
    AVERAGE HITS/SHOT
    SCORE OVER TIME
  • # 955
    SmartBot Gama
    created 07/26/13 48 code lines
    1608 SCORE
    21 KILLS
    528 SHOTS
    194 HITS
    36.67%
    AVERAGE HITS/SHOT
    SCORE OVER TIME
  • none
    Test
    created 07/26/13 101 code lines
    1500 SCORE
    0 KILLS
    0 SHOTS
    0 HITS
    0.00%
    AVERAGE HITS/SHOT
    SCORE OVER TIME