MY ROBOTS

ABSOLUTELY EVERYTHING ABOUT YOUR ARMY OF ROBOTS
  • # 24788
    bauss
    created 03/26/17 66 code lines fight
    15 SCORE
    1 KILLS
    19 SHOTS
    11 HITS
    55.00%
    AVERAGE HITS/SHOT
    SCORE OVER TIME
  • # 24134
    Robot - Beta 1
    created 03/26/17 56 code lines fight fork
    1471 SCORE
    2 KILLS
    192 SHOTS
    47 HITS
    24.35%
    AVERAGE HITS/SHOT
    SCORE OVER TIME
    var Robot = function(robot) { }; Robot.prototype.onIdle = function(ev) { var robot = ev.robot; for (var i = 0; i < 3; i++) { robot.ahead(100); robot.rotateCannon(360); robot.turn(120); robot.fire(); } for (var i = 0; i < 3; i++) { robot.back(100); robot.rotateCannon(360); robot.turn(120); robot.fire(); } }; Robot.prototype.onScannedRobot = function(ev) { var robot = ev.robot; robot.fire(); robot.fire(); }; Robot.prototype.onRobotCollision = function(ev) { var robot = ev.robot; robot.fire(); robot.turn(20); robot.ahead(100); robot.fire(); robot.turn(20); robot.back(200); robot.fire(); }; Robot.prototype.onHitByBullet = function(ev) { var robot = ev.robot; robot.turn(90 - ev.bulletBearing); robot.back(100); }; Robot.prototype.onWallCollision = function(ev) { var robot = ev.robot; robot.turn(ev.bearing); robot.back(100); };