Step 4

Analyzing the Map Layout


To solve the maze, we need to look at the map in detail. It’s almost like solving a puzzle or a riddle!

It may take a bit to notice, but there is something in common with all the green disks, and something else in common with all the blue disks.

All the green disks are a right turn away from the next disk. All the blue disks are a left turn away from the next disk.

With this new knowledge, coding the solution isn’t that bad at all!

Completing the Maze


Add the code as shown to complete the maze!

Be sure to test it out with your robot to see it in action!

If you’d like a bit of a challenge, see if you can solve the same maze using the “DownEye” sensor next.