Naive_navigate returns a move(0,0) on empty board


#1

40x40 board playing against a copy of my own bot.
Turn 2, one new ship on shipyard, trying to move one space over.
naive_navigate returns a move of (0,0)
Turn 3 it returns a valid move for the same situation!!

What am I not seeing here?!?


#2

Interesting!!

If I call naive_navigate on the same ship with the same destination twice in a row it returns the correct move offset the first time and 0,0 the next. Seems like calling the function changes the state of the map internally even without the actual move command being executed.

This does kinda make senseā€¦ but not completely.

I think I know how to avoid this problem for now.


#3

Naive_navigate actually makes a move. It is your responsibility to move your ship.