MY ROBOTS

ABSOLUTELY EVERYTHING ABOUT YOUR ARMY OF ROBOTS
  • # 1098
    Ma the bumbler
    created 12/06/12 234 code lines
    1602 SCORE
    48 KILLS
    2,004 SHOTS
    450 HITS
    22.44%
    AVERAGE HITS/SHOT
    SCORE OVER TIME
  • # 15118
    OPENROBOT
    created 12/06/12 51 code lines fork
    1468 SCORE
    11 KILLS
    119 SHOTS
    95 HITS
    79.17%
    AVERAGE HITS/SHOT
    SCORE OVER TIME
    function Robot(robot) { this.dd = false; } // well, we need to do something... // whenever our robot is idle, this method gets called. Robot.prototype.onIdle = function(ev) { var robot = ev.robot; robot.ahead(20); robot.rotateCannon(90-cannonRelativeAngle); //robot.turn(-robot.angle) var x = robot.position.x; var y = robot.position.y; var pi = Math.PI; var dx = 0 - x; var dy = 0 - y; var degree = Math.atan2(dx,-dy)*180/pi; if(!this.dd) robot.log(x,y,degree); this.dd=true; }; // this method gets called whenever we hit another robot... Robot.prototype.onRobotCollision = function(ev) {}; // this method gets called whenever we hit a wall... Robot.prototype.onWallCollision = function(ev) { var robot; robot = ev.robot; robot.turn(ev.bearing+90); }; // yay we see another robot! time to wreak some havoc... Robot.prototype.onScannedRobot = function(ev) { var robot; robot = ev.robot; robot.fire(1); }; // ohhh... we were hit by another robot... Robot.prototype.onHitByBullet = function(ev) { var robot; robot = ev.robot; robot.turn(90 - ev.bulletBearing); };
  • # 286
    TAIWAN BOT
    created 12/06/12 227 code lines
    1669 SCORE
    210 KILLS
    7,318 SHOTS
    1,895 HITS
    25.89%
    AVERAGE HITS/SHOT
    SCORE OVER TIME