dgets / nightMiner

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

Create local dropoff if the situation warrants #14

Open dgets opened 5 years ago

dgets commented 5 years ago

If the shipyard isn't within a certain # of squares (requiring 2x # of squares to return to), then we should probably just create a dropoff. Be aware that creating a dropoff requires 4,000 halite, so other factors should probably be taken into account as well (surrounding halite, # of ships in the vicinity, etc).

dgets commented 5 years ago

Okay, for what it's worth, creating a local dropoff if there isn't anything within 5 squares is going to be massive overkill. It takes 4k halite to create a dropoff point, after all. So we're going to have to do several things here...

dgets commented 5 years ago

This is going to be much easier after the MapChunk functionality is implemented, in order to better determine the local concentration of halite. Waiting on this until then... Er, well, at least waiting on that to handle the 3rd checkbox above...

dgets commented 5 years ago

As the above issue reference was creation of a duplicate issue, I'm simply pasting that information into this thread. NOTE: there are new factors taken into account...

New (and probably some duplicate) information & factors follow:

Now that we've got some bots out that are a bit better about spawning and mining, we're ending up with a lot of ships that have almost full halite that are unable to return to the shipyard, due to clogging of the main route & the pawn formation issue (#33). It would be very beneficial to pick those that are congested, and farther away from the shipyard than the others, and create a new dropoff in order to facilitate easier collection of halite.

This will necessitate, at least, the following: