MY ROBOTS

ABSOLUTELY EVERYTHING ABOUT YOUR ARMY OF ROBOTS
  • none
    Drake2
    created 12/06/12 52 code lines fight fork
    1500 SCORE
    0 KILLS
    0 SHOTS
    0 HITS
    0.00%
    AVERAGE HITS/SHOT
    SCORE OVER TIME
    var Robot = function(robot) { }; Robot.prototype.onIdle = function(ev) { var robot = ev.robot; robot.ahead(100); robot.turn(90); robot.rotateCannon(90); }; Robot.prototype.onScannedRobot = function(ev) { if (ev.scannedRobot.parentId === ev.robot.id || ev.scannedRobot.id === ev.robot.parentId) { return; } ev.robot.turn(ev.angle+90); //ev.robot.rotateCannon(90); this.attack(ev.robot, ev.scannedRobot); }; Robot.prototype.attack = function(robot, target) { if (robot.availableClones > 0) { robot.clone(); } robot.log(robot); if (target.parentId === robot.id || target.id === robot.parentId) { return; } robot.fire(); robot.back(30); robot.fire(); robot.ahead(30); robot.fire(); robot.ahead(30); robot.fire(); }; Robot.prototype.onHitByBullet = function(ev) { var robot = ev.robot; robot.turn(ev.bearing); }; Robot.prototype.onRobotCollision = function(ev) { this.attack(ev.robot, ev.collidedRobot); }; Robot.prototype.onWallCollision = function(ev) { var robot = ev.robot; robot.back(150); robot.turn(60); };
  • # 24108
    Drakebot
    created 12/05/12 52 code lines fight fork
    1485 SCORE
    1 KILLS
    22 SHOTS
    8 HITS
    34.78%
    AVERAGE HITS/SHOT
    SCORE OVER TIME
    var Robot = function(robot) { }; Robot.prototype.onIdle = function(ev) { var robot = ev.robot; robot.ahead(100); robot.turn(90); robot.rotateCannon(90); }; Robot.prototype.onScannedRobot = function(ev) { if (ev.scannedRobot.parentId === ev.robot.id || ev.scannedRobot.id === ev.robot.parentId) { return; } ev.robot.turn(ev.angle+90); //ev.robot.rotateCannon(90); this.attack(ev.robot, ev.scannedRobot); }; Robot.prototype.attack = function(robot, target) { if (robot.availableClones > 0) { robot.clone(); } robot.log(robot); if (target.parentId === robot.id || target.id === robot.parentId) { return; } robot.fire(); robot.back(30); robot.fire(); robot.ahead(30); robot.fire(); robot.ahead(30); robot.fire(); }; Robot.prototype.onHitByBullet = function(ev) { var robot = ev.robot; robot.turn(ev.bearing); }; Robot.prototype.onRobotCollision = function(ev) { this.attack(ev.robot, ev.collidedRobot); }; Robot.prototype.onWallCollision = function(ev) { var robot = ev.robot; robot.back(150); robot.turn(60); };

LATEST COMBATS

WATCH THE LAST COMBATS OF THIS PLAYER'S ARMY