BH4 / Halite3-bots

AI bots for Halite3
MIT License
0 stars 0 forks source link

Game killed player because I spent too much halite on a turn where I tried to make a dropoff #29

Closed BH4 closed 6 years ago

BH4 commented 6 years ago

Don't understand what happened. Error: [info] Map seed is 1540616077 [info] [P0] Launching with command python ..\Basic_if_then\BH4-test.py [info] [P1] Launching with command python Basic_if_then\BH4-test.py [info] [P0] Initializing player [info] [P1] Initializing player [info] [P0] Initialized player BH4-test [info] [P1] Initialized player working-BH4-test [info] Player initialization complete [error] [126] [P0] player attempted to use 4083 halite, but only 4071 halite was available [warn] [126] [P0] Killing player [info] [126] [P0] player has insufficient resources to continue [info] [126] Game has ended [info] Opening a file at replays/\replay-20181026-220315-0700-1540616077-32-32.hlt [info] Player 0, 'BH4-test', was rank 2 with 0 halite [info] Player 1, 'working-BH4-test', was rank 1 with 3911 halite [info] [P0] Player has log output. Writing a log at replays/\errorlog-20181026-220315-0700-1540616077-32-32-0.log

errorlog-20181026-220315-0700-1540616077-32-32-0.log

bot-0.log

BH4 commented 6 years ago

Fixed. Looked for "dropoff" in the keys of the status dictionary instead of in the values.