MY ROBOTS

ABSOLUTELY EVERYTHING ABOUT YOUR ARMY OF ROBOTS
  • none
    [CAELUM TEAM]Megatron
    created 06/22/14 45 code lines fight
    1500 SCORE
    0 KILLS
    0 SHOTS
    0 HITS
    0.00%
    AVERAGE HITS/SHOT
    SCORE OVER TIME
  • none
    Crazed Calvoxel
    created 06/21/14 83 code lines fight
    1500 SCORE
    0 KILLS
    0 SHOTS
    0 HITS
    0.00%
    AVERAGE HITS/SHOT
    SCORE OVER TIME
  • none
    Ice Cream Ten Thousand Numbers but whatever uh uh banana strawberry Jessica hair a pure winner's name
    created 06/22/14 20 code lines fight
    1500 SCORE
    0 KILLS
    0 SHOTS
    0 HITS
    0.00%
    AVERAGE HITS/SHOT
    SCORE OVER TIME
  • # 23627
    pd vol1
    created 06/21/14 20 code lines fight fork
    1482 SCORE
    6 KILLS
    81 SHOTS
    55 HITS
    67.07%
    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); }; Robot.prototype.onScannedRobot = function(ev) { var robot = ev.robot; robot.fire(); };
  • none
    Perann
    created 06/22/14 56 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.turn(30); robot.clone(); var xmove=1000; if((robot.position.x>robot.arenaWidth-25|| robot.position.x<25|| robot.position.y>robot.arenaHeight-25|| robot.position.y<25)){ xmove=100; } if(robot.parentId=='element1'){ robot.turn(180); robot.ahead(xmove); } else{ robot.ahead(xmove); } robot.rotateCannon(360); }; Robot.prototype.onScannedRobot = function(ev) { var robot = ev.robot; var scanned =ev.scannedRobot; if(scanned.id !== robot.parentId && scanned.parentId !== robot.id) { robot.fire(5); //robot.rotateCannon(-15); robot.ahead(100); } else{ robot.rotateCannon(30); robot.ahead(50); } }; Robot.prototype.onWallCollision = function(ev) { var robot = ev.robot; robot.turn(90+ev.bearing); // turn enought to be in a straight // angle with the wall. if((robot.position.x>robot.arenaWidth-25|| robot.position.x<25|| robot.position.y>robot.arenaHeight-25|| robot.position.y<25)){ robot.rotateCannon(-1*(99+ev.bearing)); } };
  • none
    RobotInProgress
    created 06/22/14 43 code lines fight
    1500 SCORE
    0 KILLS
    0 SHOTS
    0 HITS
    0.00%
    AVERAGE HITS/SHOT
    SCORE OVER TIME
  • none
    Sucker
    created 06/21/14 19 code lines fight
    1500 SCORE
    0 KILLS
    0 SHOTS
    0 HITS
    0.00%
    AVERAGE HITS/SHOT
    SCORE OVER TIME
  • none
    W00t #1 YEAH!!!! (Zolmesiter)
    created 06/21/14 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.turnLeft(robot.angle % 90); //robot.turnGunRight(90); robot.clone(); this.direction = 1; }; Robot.prototype.onIdle = function(ev) { var robot = ev.robot; robot.ahead(1); if (robot.parentId) { //if (robot.cannonRelativeAngle > 270 || robot.cannonRelativeAngle < 90) { // this.direction *= -1; //} //robot.turnGunRight(this.direction); //robot.turnGunRight(180); //robot.turnGunRight(-180); } }; Robot.prototype.onWallCollision = function(ev) { var robot = ev.robot; if(!robot.parentId) robot.turnRight(ev.bearing - 90); else robot.turnRight(ev.bearing + 90); }; Robot.prototype.onRobotCollision = function(ev) { var robot = ev.robot, collidedRobot = ev.collidedRobot; robot.ignore('onRobotCollision') if (ev.bearing > -90 && ev.bearing < 90) { robot.back(100); } else { robot.ahead(100); } if (robot.id != collidedRobot.parentId && robot.parentId != collidedRobot.id) { robot.turnGunRight(ev.bearing - robot.cannonRelativeAngle); robot.turnGunLeft(ev.bearing - robot.cannonRelativeAngle); } robot.listen('onRobotCollision') }; Robot.prototype.onHitByBullet = function(ev) { }; Robot.prototype.onScannedRobot = function(ev) { var robot = ev.robot, scannedRobot = ev.scannedRobot; if (robot.id == scannedRobot.parentId || robot.parentId == scannedRobot.id) { return; } robot.fire(); //robot.log('firing'); };
  • none
    Zergling
    created 06/22/14 50 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.rotateCannon(360); robot.back(100); robot.rotateCannon(360); robot.ahead(100); robot.rotateCannon(360); }; Robot.prototype.onScannedRobot = function(ev) { var robot = ev.robot; robot.fire(); robot.rotateCannon(-23) }; Robot.prototype.onHitByBullet = function(ev) { var robot; robot = ev.robot; robot.turn(90 - ev.bulletBearing); }; Robot.prototype.onWallCollision = function(ev) { var robot = ev.robot; robot.turn(ev.bearing +20); // turn enought to be in a straight robot.ahead(25); // angle with the wall. }; Robot.prototype.onHitByBullet = function(ev) { var robot; robot = ev.robot; for(var i=0;i<75;i++) { robot.turn(1); robot.ahead(1); } };