awesomelemonade / Battlecode2019

Battlecode: Crusade - Team: CitricSky - 3rd place overall
https://battlecode.org/
0 stars 0 forks source link

Error in pilgrimTurn #11

Open awesomelemonade opened 5 years ago

awesomelemonade commented 5 years ago

Appears to be related to lategame where a lot of tiles are occupied

[Robot 1256 Error] TypeError: Cannot read property 'equals' of undefined
    at getMove (vm.js:366:18)
    at MyRobot.pilgrimTurn [as botTurn] (vm.js:869:14)
    at MyRobot.turn (vm.js:1031:15)
    at MyRobot._do_turn (vm.js:31:26)
    at vm.js:1:7
    at ContextifyScript.Script.runInContext (vm.js:59:29)
    at VM.run (/usr/local/lib/node_modules/bc19/node_modules/vm2/lib/main.js:208:72)
    at CrossVM.turn (/usr/local/lib/node_modules/bc19/vm.js:15:26)
    at Game.enactTurn (/usr/local/lib/node_modules/bc19/game.js:727:34)
    at Coldbrew.gameLoop (/usr/local/lib/node_modules/bc19/runtime.js:64:19)