MY ROBOTS

ABSOLUTELY EVERYTHING ABOUT YOUR ARMY OF ROBOTS
  • # 66
    BLACKMONKS V001
    created 12/29/16 219 code lines fight
    1586 SCORE
    15 KILLS
    370 SHOTS
    128 HITS
    34.50%
    AVERAGE HITS/SHOT
    SCORE OVER TIME
  • # 242
    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
  • # 29
    CLOCKWORKORANGE V001
    created 12/29/16 79 code lines fight fork
    1611 SCORE
    26 KILLS
    607 SHOTS
    215 HITS
    35.36%
    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); };
  • # 162
    GreenWorms V005
    created 12/15/16 47 code lines fight
    1551 SCORE
    50 KILLS
    1,284 SHOTS
    434 HITS
    33.77%
    AVERAGE HITS/SHOT
    SCORE OVER TIME
  • # 62
    GreyOnes V003
    created 12/15/16 47 code lines fight
    1587 SCORE
    37 KILLS
    754 SHOTS
    332 HITS
    43.97%
    AVERAGE HITS/SHOT
    SCORE OVER TIME
  • # 97
    RedMonkeys V004
    created 12/15/16 63 code lines fight
    1573 SCORE
    31 KILLS
    1,271 SHOTS
    311 HITS
    24.45%
    AVERAGE HITS/SHOT
    SCORE OVER TIME
  • # 310
    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
  • # 103
    WHITERABBits V002
    created 12/29/16 42 code lines fight
    1570 SCORE
    11 KILLS
    271 SHOTS
    107 HITS
    39.34%
    AVERAGE HITS/SHOT
    SCORE OVER TIME