There is an old trick for mazes: put your right hand on the wall as you walk in and never take it off. You will go into some dead ends, but you will get out in the end. Children love it because it feels like a secret. It is also a perfect first algorithm: a rule you can follow step by step, without guessing, that is supposed to solve the problem every time.
But does it really always work? This article turns that question into a paper game for children aged roughly 7 to 12. You test the rule, look for a maze that beats it, and then try a smarter rule. Along the way your child does what programmers do all day: checks whether a method really works, and fixes it when it doesn't.
The rule: keep your right hand on the wall
Draw a simple maze on squared paper, with an entrance and an exit on the outside edge. If you need ideas, start with a small grid of five by five squares.
Your child's finger is the walker. The rule:
- At the entrance, put the finger next to the wall on the walker's right side.
- Move forward, always keeping that wall on the right. When the wall turns, turn with it.
- In a dead end, follow the wall around the end and come back out. Never lift the finger.
Let them trace it slowly with a pencil, so the path stays on the paper. Then ask a few questions:
- Did you reach the exit?
- How many dead ends did you visit on the way?
- What happens with the left hand instead? (Usually a different route, sometimes shorter, sometimes longer.)
Children quickly notice that the rule is slow but steady. It never gets lost, it just takes the long way.
Why it usually works
Here is a way to explain it. In most mazes drawn on paper, every wall is joined to the outside wall, directly or through other walls. Imagine pulling the maze straight: all those walls together form one very long, wiggly fence. Walking with your hand on it is like walking along that fence from one end to the other. The exit is a gap in the same fence, so sooner or later your hand gets there.
Ask your child to color all the walls that touch the outside wall in one color. If every wall gets colored, the right-hand rule will work in that maze.
The maze that beats the rule
Now the fun part: can your child draw a maze where the rule fails? Give a hint only if they get stuck: put the goal in the middle.
A simple design that works:
- Draw a square outer wall with an entrance.
- Inside it, draw a smaller square of walls with one gap, that does not touch the outer wall anywhere. It's an island.
- Put a treasure inside the small square.
Now follow the right-hand rule from the entrance. The finger slides along the outer wall all the way around and comes back out of the entrance. It never meets the island, so it never finds the treasure. And if you start next to the island instead, you circle it forever and never find the way out.
This is the important lesson: a rule can work in many cases and still be wrong in some. Programmers spend a lot of time looking for exactly these cases, the ones nobody thought of, before a program is used for real.
A better rule: leave marks
A smarter method uses marks, like a trail of chalk lines. On paper, your child draws small dashes with a pencil at the start of each corridor, right next to the crossing.
- Each time you go into or out of a corridor at a crossing, draw one dash there.
- At a crossing, take a corridor with no dashes if there is one; if not, take one with a single dash.
- If you arrive at a crossing that already has dashes, and you came down a new corridor, turn around and go back the way you came.
- Never go into a corridor that already has two dashes.
It takes more care than the hand on the wall, because you have to remember and read marks. In return, it finds the treasure in the island maze too, as long as there is a way to it, and it never walks the same corridor more than twice. Let your child try both rules on the same maze and count the steps.
| Rule | Easy to follow? | Always finds the goal? |
|---|---|---|
| Hand on the right wall | Very easy, no memory needed | No: fails when the goal is inside an island |
| Leave marks | Needs care and marks | Yes, if there is a path |
| Choose at random | Easy | Maybe, but it can take a very long time |
Matching the game to your child
The ages are a rough guide; every child is different.
- Around 7 to 8: small mazes you draw, right hand only. Compare with the left hand.
- Around 9 to 10: color the walls joined to the outside, then design a maze that beats the rule.
- Around 11 to 12: try the marking rule, count steps, and write the rule as a short list of instructions for someone else to follow without help.
In Dologi's Space topic, the Maze puzzles ask children to draw a path from a circle to a star without going through the walls. After this game, many children notice which rule they are using in their head, and when it is faster to look ahead instead.
In short
- "Keep your right hand on the wall" is a real algorithm: a rule that can be followed step by step without guessing.
- It works when every wall is joined to the outer wall, but it fails when the goal sits inside an island of walls.
- Looking for the case that breaks a rule is exactly what programmers do.
- A rule with marks is slower to follow but finds the goal whenever there is a path.
Read more: Drawing mazes for your child: three levels from easy to hard
