MY ROBOTS

ABSOLUTELY EVERYTHING ABOUT YOUR ARMY OF ROBOTS
  • # 130
    TestHab
    created 08/10/17 43 code lines fight
    1561 SCORE
    21 KILLS
    462 SHOTS
    189 HITS
    40.82%
    AVERAGE HITS/SHOT
    SCORE OVER TIME
  • # 110
    Tommy
    created 05/07/16 38 code lines fight fork
    1568 SCORE
    8 KILLS
    144 SHOTS
    82 HITS
    56.55%
    AVERAGE HITS/SHOT
    SCORE OVER TIME
    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(5); 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); };