What if the shore isn't a clean line?
Then it is the https://en.wikipedia.org/wiki/Bellman%27s_lost-in-a-forest_p... - also unsolved