MY ROBOTS

ABSOLUTELY EVERYTHING ABOUT YOUR ARMY OF ROBOTS
  • # 60
    BLACKMONKS V001
    created 12/29/16 219 code lines fight
    1577 SCORE
    15 KILLS
    378 SHOTS
    132 HITS
    34.83%
    AVERAGE HITS/SHOT
    SCORE OVER TIME
  • # 199
    BLUEBIRDS V002
    created 12/30/16 95 code lines fight
    1530 SCORE
    18 KILLS
    389 SHOTS
    170 HITS
    43.59%
    AVERAGE HITS/SHOT
    SCORE OVER TIME
  • # 25
    CLOCKWORKORANGE V001
    created 12/29/16 79 code lines fight fork
    1598 SCORE
    23 KILLS
    563 SHOTS
    194 HITS
    34.40%
    AVERAGE HITS/SHOT
    SCORE OVER TIME
    // sibbed metaheuristics #SIBCODE "use-strict"; var preFireRotateCanonCorrection = [2,0,2,1,2,0,-1,2]; var preFireRotateCanonCorrectionCount = 0; var preFireRotateCorrection = [0,-1,0,1,0]; // 0 var preFireRotateCorrectionCount = 0; var afterFireRotateCorrection = [8,7,9]; // 8 var afterFireRotateCorrectionCount = 0; var afterFireRotateCanonCorrection = [-15,-15]; //[-12,-20,-22,-24,-26]; // 22 / 2' var afterFireRotateCanonCorrectionCount = 0; var afterFireAhead = [10,15,-10,15,-15,10]; // 15 var afterFireAheadCount = 0; var Robot = function(r) {}; Robot.prototype.onIdle = function(ev) { var robot = ev.robot; robot.clone(); if (robot.parentId) { robot.rotateCannon(-10); robot.ahead(-3); robot.turn(-1); robot.ahead(-3); } else { robot.rotateCannon(10); robot.ahead(3); robot.turn(1); robot.ahead(3) }}; Robot.prototype.onScannedRobot = function(ev) { var robot = ev.robot; if (ev.scannedRobot.parentId == robot.id || ev.scannedRobot.id == robot.parentId) { return; }; if (robot.parentId) { robot.rotateCannon(-preFireRotateCanonCorrection); preFireRotateCanonCorrectionCount++; if (preFireRotateCanonCorrectionCount >= preFireRotateCanonCorrection.length) {preFireRotateCanonCorrection = 0; } robot.turn(-preFireRotateCorrection); preFireRotateCorrectionCount++; if (preFireRotateCorrectionCount >= preFireRotateCorrection.length) {preFireRotateCorrectionCount = 0; } robot.fire(); robot.turn(-afterFireRotateCorrection); afterFireRotateCorrectionCount++; if (afterFireRotateCorrectionCount >= afterFireRotateCorrection.length) {afterFireRotateCorrectionCount = 0; } robot.rotateCannon(-afterFireRotateCanonCorrection[afterFireRotateCanonCorrectionCount]); afterFireRotateCanonCorrectionCount++; if (afterFireRotateCanonCorrectionCount >= afterFireRotateCanonCorrection.length) {afterFireRotateCanonCorrectionCount = 0; } robot.ahead(-afterFireAhead[afterFireAheadCount]); afterFireAheadCount++; if (afterFireAheadCount >= afterFireAhead.length) {afterFireAheadCount = 0;} } else { robot.rotateCannon(preFireRotateCanonCorrection); preFireRotateCanonCorrectionCount++; if (preFireRotateCanonCorrectionCount >= preFireRotateCanonCorrection.length) {preFireRotateCanonCorrection = 0; } robot.turn(preFireRotateCorrection); preFireRotateCorrectionCount++; if (preFireRotateCorrectionCount >= preFireRotateCorrection.length) {preFireRotateCorrectionCount = 0; } robot.fire(); robot.turn(afterFireRotateCorrection); afterFireRotateCorrectionCount++; if (afterFireRotateCorrectionCount >= afterFireRotateCorrection.length) {afterFireRotateCorrectionCount = 0; } robot.rotateCannon(afterFireRotateCanonCorrection[afterFireRotateCanonCorrectionCount]); afterFireRotateCanonCorrectionCount++; if (afterFireRotateCanonCorrectionCount >= afterFireRotateCanonCorrection.length) {afterFireRotateCanonCorrectionCount = 0; } robot.ahead(afterFireAhead[afterFireAheadCount]); afterFireAheadCount++; if (afterFireAheadCount >= afterFireAhead.length) {afterFireAheadCount = 0;} } }; Robot.prototype.onHitByBullet = function(ev) { var robot = ev.robot; robot.disappear(); }; Robot.prototype.onWallCollision = function(ev) { var robot = ev.robot; if (robot.parentId) { robot.rotateCannon(45); robot.turn(-45); } else { robot.rotateCannon(-45); robot.turn(45); } }; Robot.prototype.onRobotCollision = function(ev) { var robot = ev.robot; robot.back(35); };
  • # 155
    GreenWorms V005
    created 12/15/16 47 code lines fight
    1543 SCORE
    45 KILLS
    1,203 SHOTS
    413 HITS
    34.30%
    AVERAGE HITS/SHOT
    SCORE OVER TIME
  • # 125
    GreyOnes V003
    created 12/15/16 47 code lines fight
    1551 SCORE
    24 KILLS
    587 SHOTS
    229 HITS
    38.95%
    AVERAGE HITS/SHOT
    SCORE OVER TIME
  • # 92
    RedMonkeys V004
    created 12/15/16 63 code lines fight
    1565 SCORE
    26 KILLS
    1,186 SHOTS
    281 HITS
    23.67%
    AVERAGE HITS/SHOT
    SCORE OVER TIME
  • # 248
    StealthSharks V007
    created 12/15/16 75 code lines fight
    1528 SCORE
    105 KILLS
    2,724 SHOTS
    909 HITS
    33.36%
    AVERAGE HITS/SHOT
    SCORE OVER TIME
  • # 122
    WHITERABBits V002
    created 12/29/16 42 code lines fight
    1553 SCORE
    9 KILLS
    252 SHOTS
    95 HITS
    37.55%
    AVERAGE HITS/SHOT
    SCORE OVER TIME