Skip to content
  1. Home
  2. Games
  3. Coding Games for Kids
  4. Algorithm Maze

Algorithm Maze · Coding game for kids

Algorithm Maze

Tap blocks to put together a program, then hit Run and watch the robot obey. Repeat saves blocks, and if blocks let the robot choose for itself.

Ages 8–1220 levels🔊 Sound🗣️ Voice
👶 Ages 8–12 🏁 20 levels 🔊 Sound effects 🗣️ Read aloud 📱 Works on tablets 🆓 Free, no sign-up

Free coding puzzles for ages 8–12. Line up move, turn, repeat and if blocks to steer a robot to the flag, then write one program for many mazes.

A look at the puzzle

An orange robot stands at the entrance of a maze with a checkered flag at the far end. Nobody drives it. Your child writes a program instead, a line of blocks that the robot follows in order once Run is pressed. A small arrow on the robot shows its heading, and this matters, because “turn left” is always from the robot’s own point of view.

A crash into a wall, a stop short of the flag or an endless loop makes the robot flash red and return to the beginning. Tapping a block moves the orange cursor, so a new block can be slotted in at that spot, and backspace deletes one. There is a turtle button to change the speed on long mazes and a light bulb for a hint.

Mazes are built fresh every time, so a replay is a new puzzle and a remembered answer is useless.

Levels New tool Thinking skill
1–3 Move, turn left, turn right Sequencing: exact steps in the right order
4–6 Repeat block under a block limit Loops: write once, run many times
7–9 Loops nested in loops (staircases, zigzags, snakes) Spotting patterns made of patterns
10–12 “Repeat until the flag” and if blocks Conditions: the robot decides on its own
13–15 One program for two mazes at once Writing a general algorithm
16–20 Three bigger mazes, still one program Testing against many cases

A counter at the top shows blocks used against the allowed total. From level 4 that total is tight on purpose. A long straight corridor would need ten “move” blocks but only three are permitted, so a Repeat block turns up as the natural answer, not as a rule learned by heart.

Three stars go to a program that works at the first run, two to one needing a few tries, and every level can be completed. A program stuffed with unneeded blocks stays at two stars.

What your child picks up

Order matters. Turn-then-move lands the robot on a different square from move-then-turn. Children soon realize that a computer does precisely what it is told, nothing more.

Loops and patterns. Climbing a staircase means “forward, left, forward, right”, repeated. Once a child sees it, five blocks replace twenty. The nested loops of levels 7 to 9 stretch the same idea.

Rules over counting. By level 10 the tunnels wind unpredictably, so counting squares no longer works. Kids write conditions like “if a wall is ahead, turn right”, which is the if/then thinking behind all programming.

Algorithms. Getting one program to escape two or three mazes shows why programmers prefer rules to step lists. Many children invent the wall-follower method without being told, and the grin that follows is worth watching.

Debugging. The block currently running lights up as the robot moves, so a child can trace their own program and catch the slip. Change one block, try again: that is much of a programmer’s working day.

Helping at home or in class

  1. Talk it through before Run. Have your child point at each block and describe the robot’s move. Many bugs vanish before the robot starts.
  2. Sort out left and right. The robot’s left is what counts. Turn your body to face the robot’s way if that helps.
  3. Treat a crash as data. “Which block led to that?” works better than “what did you do wrong?”
  4. For multi-maze levels, follow a single robot first, then work out why the second one failed. One extra if block frequently cures everything.
  5. Ask for the rule in words. A child who can say the final program in one sentence has understood it.

Away from the screen

  • Human robot. Tape or chalk out a grid on the ground. One person writes arrow instructions on paper and the other walks them to the letter, bumping into imaginary walls.
  • Pattern spotting. Find repeats in a song, a dance step or a knitted scarf and write them as “repeat 4 times”.
  • Follow the wall. Print a maze and run a finger along the left wall, then along the right wall. Do both reach the exit?
  • Buggy recipe. Write a sandwich recipe with a step missing and let your child hunt for the fault.

Frequent slips

  • Open loops. A Repeat block swallows every block after it until you add “end”. A loop never closed is shut automatically when the program ends, which can repeat more than planned.
  • Mirrored directions when the robot points down or left. Pointing a finger the robot’s way usually fixes it.
  • Fixed steps on multi-maze levels. If the program clears maze 1 but crashes in maze 2, swap the steps for a rule.

Frequently asked questions

Does my child have to read or type code?
Neither. Commands are large colored blocks with arrows, and a program is assembled by tapping. The reasoning is identical to real programming; only the typing is missing.
What is the left-hand rule from the later levels?
It is an old maze trick. Slide one hand along the wall as you walk and you will eventually exit any maze without loops. In the game, kids express it with if blocks and the robot applies it by itself.
Why must a single program handle more than one maze?
That is exactly what an algorithm is. A list of steps suits one maze only, whereas a rule suits all of them. Levels 13 to 20 let children feel that difference.
Is there an easier game for younger children?
Yes. In Maze Runner they steer a character themselves, which is a good way to start thinking about routes.

More games like Algorithm Maze

All coding games for kids →