Maze Round Trip
Hard · Mazes
There is a ball somewhere in the maze. Find it (right paw on the wall works), pick it up, then bring it all the way back to the square where Karel started and put it down there.
Your code runs in several mazes. Karel can not see its start square, so it has to remember how it got to the ball. Hint: write down every command in an array. To go back, turn around and undo the commands from last to first, with left and right turns swapped.
Next: Frame in a Frame