dgets / nightMiner

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

Initial vectoring out should be to a particular point #1

Closed dgets closed 5 years ago

dgets commented 5 years ago

I'm going to try experimenting with a few ways for working on this, probably, so this method is definitely not going to be tops for efficiency or anything.

My idea for right now is to generate a random positional offset, ie (x, y) wherein x: {-5, 5}, and y: {-5, 5}. Instead of heading out in a random direction x # of times, the random offset can be generated and applied to the shipyard spawn point or just wherever the ship is at when this occurs. The current location will be used to generate the new positional, and naive_navigate can take things from there. This will definitely decrease the likelihood of smashing into our own ships and taking them out. It'll also help the tendency for random moves to cancel themselves out, leaving a quagmire near the spawn point.