I have a bot that can quite accurately estimate (from around turn 10) the turn number when the current race will finish. However i cannot seem to use this information to yield a benefit. Intuitively I would have thought i could use this information to change the rate of energy consumption to ensure that the bot finished with maximum distance on the predicted turn should give an advantage over other bots, but it doesn't seem to in practice... Any other ideas i could use this information for?
@GNiklasch looks like i re-introduced the spawn on queen bug that was fixed a while back... that is what i get from cut and pasting via email between home and work
Updated fire fly to use the new counter. while it allow counting up to 372, i have currently set the period to 50 game ticks. It is only a minor improvement as it still is very susceptible to interference.
Yep, i had thought about using a worker of a dedicated type for orientation purposes, but i ended up eventually favouring the dedicated colour as the worker is better used for food collection and loosing orientation is not a catastrophic event as it can be detected and rectified. It would mean loosing count to some unknown position but it is not critical that the counter is perfect: either the counter will be too quick or too slow but will eventually hit the max value and reset anyway
The main idea to start counting down the least significant digit (cell) when you reach the limit of the least significant digit and have thus incremented the next significant digit. Of course, this solution will require that the queen maintains orientation.
I have however believe i have derived a "gray-like" code from first principles, it is not probably novel... but i my google-fu failed me and i could not find a solution that i could adapt to my purposes.
Yes exactly like GNiklasch has mentioned, i need a gray-like code for use in n-ary symbol dictionary (i.e. the 8 colours allowed) as only one cell can change per game tick, so going from say 7 to 8 using 8 colours (zero indexed for convenience) in the standard n-ary coding would be going from a code of "7" to a code of "10" thus needing two steps to colour two cells. In fact would require more: 3 cells or use of another worker to ensure that the queen knows to perform the second cell paint
@GNiklasch :42277756 I am not really sure how to make a "gray-code-like" encoding when using non-binary atoms, i.e. the 8 colours per cell. However i think i can sacrifice a cell to be a orientation cell so will allow the use of the three remaining cells to encode 0 to 373 using 7 colours across 3 cells (7*7*7) using a simple radix encoding. That should give enough range to tune the spawn rate