dgets / nightMiner

Halite III Bot - rewriting Halite III bot from scratch with better project structure plans
6 stars 1 forks source link

Freshly stay_still() active mining ships fall into except #3

Closed dgets closed 5 years ago

dgets commented 5 years ago

After the ships reach their destination, it looks like the code is properly resetting the myglobals.Variables.current_assignments to a new instance of ShipHistory. However, in the following turn, it appears that the same ship will fall through the try/except with an exception, and end up having a new random offset positional assigned to it. As a result, mining only lasts for 1 turn.

This is not desirable behavior and needs to be fixed...