dgets / nightMiner

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

prune_current_assignments() should also clear considered_destinations #55

Open dgets opened 5 years ago

dgets commented 5 years ago

If ShipHistory is to be fully integrated, it will be necessary to have prune_current_assignments() also go into glo.Variables.considered_destinations, and wipe out any destinations that the ship was previously considering. This would require either modification of considered_destinations from a list into a dict, in order to store things along with the ship.id, or else a considered destination field could be added to the ShipHistory class, enabling it to be tucked in along with everything else that belongs there (this is the way I'm going to try to handle it).