MY ROBOTS

ABSOLUTELY EVERYTHING ABOUT YOUR ARMY OF ROBOTS
  • # 24229
    Backup Bot
    created 01/13/17 428 code lines fight
    979 SCORE
    105 KILLS
    2,052 SHOTS
    761 HITS
    37.07%
    AVERAGE HITS/SHOT
    SCORE OVER TIME
  • # 2
    Ryah
    created 01/13/17 428 code lines fight
    1772 SCORE
    342 KILLS
    6,934 SHOTS
    2,801 HITS
    40.39%
    AVERAGE HITS/SHOT
    SCORE OVER TIME
  • # 120
    Walls Upgraded v2
    created 01/13/17 48 code lines fight fork
    1569 SCORE
    15 KILLS
    238 SHOTS
    118 HITS
    49.37%
    AVERAGE HITS/SHOT
    SCORE OVER TIME
    var Robot = function(robot) {}; var moveAmount = 0; var doSetup = true; var cloneId = false; Robot.prototype.onIdle = function(ev) { var robot = ev.robot; if(cloneId === false && robot.parentId !== null) { cloneId = robot.id; doSetup = true; robot.turnRight(90); } if(doSetup) { robot.clone(); moveAmount = Math.max(robot.arenaWidth,robot.arenaHeight); robot.turnLeft(robot.angle % 90); robot.turnGunRight(90); doSetup = false; } robot.ahead(moveAmount); }; Robot.prototype.onRobotCollision = function(ev) { var robot = ev.robot; var target = ev.collidedRobot; if(target.id !== cloneId && target.id !== robot.parentId) { robot.back(15); robot.turnGunRight(-95); robot.turnGunRight(95); } }; //for fight code game, this way is better :) Robot.prototype.onWallCollision = function(ev) { ev.robot.turnRight(ev.bearing + 90); }; Robot.prototype.onHitByBullet = function(ev) { if(ev.robot.id !== cloneId) ev.robot.disappear(); }; Robot.prototype.onScannedRobot = function(ev) { var robot = ev.robot; var target = ev.scannedRobot; if(target.id !== cloneId && target.id !== robot.parentId) robot.fire(); };

LATEST COMBATS

WATCH THE LAST COMBATS OF THIS PLAYER'S ARMY