The prophet is lost in his way to the target.
At each tick()
, the prophet can decide to move 'up'
, 'down'
, 'left'
, 'right'
and he can always get the direct distance()
to the target.
Help him find his way quicker, by hacking tick()
.
You can and probably should define additional functions and global variables.