MY ROBOTS

ABSOLUTELY EVERYTHING ABOUT YOUR ARMY OF ROBOTS
  • # 119
    irobot
    created 12/16/16 41 code lines fight
    1582 SCORE
    63 KILLS
    1,778 SHOTS
    514 HITS
    28.89%
    AVERAGE HITS/SHOT
    SCORE OVER TIME
  • none
    irobot
    created 12/15/16 46 code lines fight fork
    1500 SCORE
    0 KILLS
    0 SHOTS
    0 HITS
    0.00%
    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(100); robot.rotateCannon(360); robot.back(100); robot.rotateCannon(360); if(cannonAbsoluteAngle < 90){ robot.rotateCannon(cannonAbsoluteAngle == 90); } }; Robot.prototype.onScannedRobot = function(ev) { var robot = ev.robot; robot.fire(); robot.ahead(200);//?? }; Robot.prototype.onWallCollision = function(ev){ var robot = ev.robot; robot.turn(90); robot.turn(ev.bearing); }; Robot.prototype.onRobotCollision = function(ev){ var robot = ev.robot; robot.disappear(); robot.turn(100); robot.disappear(); robot.ahead(200); }; Robot.prototype.onHitByBullet = function(ev) { var robot = ev.robot; robot.clone(); robot.log("bye bye"); };

LATEST COMBATS

WATCH THE LAST COMBATS OF THIS PLAYER'S ARMY