Million Whys Press logo
Million Whys PressToronto
← Book 15 videos

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.

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

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.

Why I wrote this