-
Notifications
You must be signed in to change notification settings - Fork 1
mining.py
Damon Getsman edited this page Nov 19, 2018
·
1 revision
mining.py is just the mining internals. Probably a bit of work to be done here due to issues that I've been having; at least some work on how the current_assignments
are set. That needs to be made uniform throughout the codebase, though, not just here.
NOTE: I do believe there is a lot of room for improvement here
Just the mining internals, as per what the PyDoc claims.
-
low_cargo_and_no_immediate_halite()
- this static method is allegedly just for when all of the halite has been mined from a particular square by the ship, or when transit is completed to this destination, but all of the halite has been raided while in transit. NOTE: This method really needs to be improved by utilization of some of the routines from analytics -
done_with_transit_now_mine()
- simply changes the status of the ship in theShipHistory
/current_assignments
, then returns to the caller the command forship.stay_still()
; not sure if this is everything that is needed or not, it depends on the accuracy of the conditionals branching to this routine