MY ROBOTS

ABSOLUTELY EVERYTHING ABOUT YOUR ARMY OF ROBOTS
  • none
    KALI
    created 12/05/12 73 code lines fight
    1500 SCORE
    0 KILLS
    0 SHOTS
    0 HITS
    0.00%
    AVERAGE HITS/SHOT
    SCORE OVER TIME
  • none
    RoLemosRobot
    created 12/05/12 0 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.clone(); robot.rotateCannon(robot.bearing); robot.ahead(50); robot.turn(50); robot.rotateCannon(180); robot.back(50); robot.rotateCannon(180); }; Robot.prototype.onScannedRobot = function(ev) { var robot = ev.robot; var scanned =ev.scannedRobot; if(scanned.id !== robot.parentId && scanned.parentId !== robot.id) { robot.fire(); robot.rotateCannon(-5); robot.rotateCannon(-30); } }; Robot.prototype.onRobotCollision = function(ev) { var robot = ev.robot; robot.ahead(robot.position+5); robot.ahead(robot.position-15); robot.fire(); }; Robot.prototype.onHitByBullet = function(ev) { var robot; robot = ev.robot; robot.turn(90 - ev.bulletBearing); };
  • none
    RoLemosRobot
    created 12/05/12 88 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) { if ( robot.availableClones > 0 ) { var ob = robot.clone(); robot.ahead(44); robot.turn(50); } robot.turnLeft(robot.angle % 90); robot.turnGunRight(90); }; Robot.prototype.onIdle = function(ev) { var robot = ev.robot; if (robot.parentId ) { robot.rotateCannon(5) } if (!robot.parentId ) { robot.rotateCannon(5) } }; Robot.prototype.onRobotCollision = function(ev) { var robot = ev.robot; robot.rotateCannon(360) robot.back(50); }; Robot.prototype.onWallCollision = function(ev) { var robot = ev.robot; robot.rotateCannon(90); robot.turn(90); robot.ahead(123); }; Robot.prototype.onScannedRobot = function(ev) { var robot = ev.robot, scannedRobot = ev.scannedRobot; var isFriendly = ( robot.parentId !=null && robot.parentId==scannedRobot.id); isFriendly |= ( scannedRobot.parentId !=null && scannedRobot.parentId==robot.id); if ( isFriendly ) { robot.back(20); //robot.rotateCannon(-90); return; } for( var i =0;i<10;i++) { robot.stop(); robot.fire(); robot.fire(); robot.rotateCannon(-10); robot.fire(); robot.fire(); robot.rotateCannon(-15); } }; Robot.prototype.onHitByBullet = function(ev) { var robot; robot = ev.robot; robot.stop(); robot.turn(ev.bearing); robot.fire(); robot.fire();; robot.fire(); robot.turn(45); robot.back(100); }
  • none
    Shipow#001
    created 12/06/12 0 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.rotateCannon(-90); }; Robot.prototype.onIdle = function(ev) { var robot = ev.robot; robot.ahead(); //i'll add a clone but i need to refactor collision //robot.clone(); }; Robot.prototype.onScannedRobot = function(ev) { var robot = ev.robot; var scanned =ev.scannedRobot; if(scanned.id !== robot.parentId && scanned.parentId !== robot.id) { robot.fire(); robot.rotateCannon(-15); robot.rotateCannon(15); }else{ } }; Robot.prototype.onHitByBullet = function(ev) { var robot; }; Robot.prototype.onRobotCollision = function(ev) { var robot = ev.robot; robot.rotateCannon(90); }; Robot.prototype.onWallCollision = function(ev) { var robot = ev.robot; robot.turn(-90+ev.bearing); };
  • none
    skaicoo
    created 12/05/12 0 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 id; var Robot = function(robot) { id = this.id; }; Robot.prototype.onIdle = function(ev) { var robot = ev.robot; robot.ahead(50); robot.clone(); robot.life = 100; robot.turn(90); robot.log(robot); if (robot.parentId != id) { robot.rotateCannon(45); robot.rotateCannon(90); robot.turn(60); robot.ahead(250); return; } }; Robot.prototype.onScannedRobot = function(ev) { var robot = ev.robot; var scannedRobot = ev.scannedRobot; if (scannedRobot.parentId == robot.id || scannedRobot.id == robot.parentId) { return; } if (robot.parentId == id) { robot.fire(); robot.stop(); robot.rotateCannon(40); robot.stop(); robot.fire(); robot.stop(); robot.ahead(10); robot.fire(); robot.turn(-30); robot.ahead(10); return; } for (var i=0; i<10; i++) { robot.fire(); robot.stop(); robot.fire(); robot.stop(); robot.ahead(10); robot.fire(); robot.turn(-30); robot.ahead(10); } return; }; Robot.prototype.onWallCollision = function(ev) { var robot = ev.robot; robot.back(150); robot.turn(60); }; Robot.prototype.onRobotCollision = function(ev) { var robot = ev.robot; robot.back(150); robot.turn(60); };
  • # 23521
    test
    created 12/04/12 94 code lines fight
    1498 SCORE
    1 KILLS
    39 SHOTS
    12 HITS
    30.00%
    AVERAGE HITS/SHOT
    SCORE OVER TIME
  • none
    Zolmeister
    created 12/05/12 0 code lines fight fork
    1500 SCORE
    0 KILLS
    0 SHOTS
    0 HITS
    0.00%
    AVERAGE HITS/SHOT
    SCORE OVER TIME
    None

LATEST COMBATS

WATCH THE LAST COMBATS OF THIS PLAYER'S ARMY