Book 15, Question 130
Why Can a Robot Get Out of a Maze by Always Turning Left?
A robot can get out of many mazes by always turning left, called the left hand on the wall strategy.
A robot can get out of a maze by always turning left because it follows one simple wall rule! It keeps one side touching the wall as it moves. That path leads along the walls, all the way to the exit.
Watch the videoWatch on YouTubeSee the series on Amazon
Quick answers
How does it work?
You turn left whenever you can, and only turn right if there is no other way.
Source: pololu.com
More fun facts
- The trick of keeping one hand on the wall is called the left hand on the wall strategy.
- Imagine walking through a stone maze with your left hand touching the wall the whole time.
- You turn left whenever you can, and only turn right if there is no other way.
- At a dead end, you turn all the way around and walk back the way you came.
- If the maze has no loops, your hand slides along every wall exactly once.
- Along the way you walk down every hallway exactly twice, so you can't miss a hidden room.
- A small robot called the 3pi uses this simple, reliable strategy to solve mazes.
Sources: pololu.com
Questions kids ask
Does the trick work in every maze?
No. It works for mazes without loops. A maze with loops can send you around in circles.