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 build a program for the robot, then press Run. Use Repeat to save blocks, and if blocks so the robot can decide on its own.

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

A free coding game for kids ages 8–12: program a robot with move, turn, repeat and if blocks to escape mazes, then write one program that solves them all.

How to play Algorithm Maze

A small orange robot stands at the start of a maze and a checkered flag waits at the exit. Your child does not steer the robot. Instead, they build a program: a row of command blocks that the robot will follow one by one when they press Run. The arrow on the robot shows which way it is facing, which matters because “turn left” depends on the direction the robot is already looking.

If the robot bumps into a wall, stops before the flag or keeps going in circles, it flashes red and goes back to the start. Your child can tap any block in the program to move the orange cursor there, insert a new block, or delete one with the backspace button. The turtle button switches to a faster speed for long mazes, and the light bulb gives a hint.

Every maze is generated fresh, so replaying a level means a new puzzle, not a memorized answer.

Levels What is new The idea behind it
1–3 Move, turn left, turn right Sequencing: exact step-by-step instructions
4–6 Repeat block with a block limit Loops: say it once, run it many times
7–9 Loops inside loops (staircases, zigzags, snakes) Finding patterns inside patterns
10–12 “Repeat until the flag” and if blocks Conditions: the robot decides by itself
13–15 One program must solve two mazes at once Writing a general algorithm
16–20 Three bigger mazes, one program Testing an algorithm on many cases

The block counter at the top shows how many blocks are used and the limit for the level. From level 4 the limit is tight on purpose: a long corridor would need ten “move” blocks, but only three are allowed, so the Repeat block becomes the natural solution rather than a rule to memorize.

Stars reward clear thinking. A program that works on the first run earns three stars, a couple of failed runs earns two, and the level can always be finished. Using far more blocks than needed caps the result at two stars.

What your child learns

Sequencing. The early levels are all about order. Turning right and then moving is not the same as moving and then turning right. Children quickly see that computers do exactly what they are told, nothing more.

Loops and pattern spotting. A staircase is “forward, left, forward, right” again and again. Once a child sees that pattern, they can write it in five blocks instead of twenty. Nested loops in levels 7 to 9 take this one step further: a pattern made of smaller patterns.

Conditional logic. From level 10 the tunnels twist randomly. Counting squares no longer helps, so children write rules instead: “if there is a wall ahead, turn right.” This is the same if/then thinking used in every programming language.

Algorithms and generalization. The final stage is the most valuable. When the same program has to escape two or three different mazes at the same time, children discover why programmers write rules instead of fixed step lists. Many kids rediscover the wall-follower method on their own, which is a deeply satisfying moment.

Debugging and persistence. A failed run shows exactly where things went wrong: the highlighted block lights up as the robot moves, so children can follow their own program and spot the mistake. Fixing one block and trying again is what programmers do all day.

Tips for parents

  1. Trace before you run. Ask your child to point at each block and say what the robot will do. Many bugs are found this way before the robot even moves.
  2. Talk about direction. “Left” means the robot’s left, not yours. If your child gets confused, turn your own body to face the same way as the robot.
  3. Celebrate the bonk. A crash is information. Ask “which block made it crash?” rather than “what went wrong?”
  4. For the multi-maze levels, suggest watching just one robot first, then checking why another robot failed. Often a single extra if block fixes everything.
  5. Let your child explain their final program to you as a “rule”. If they can say it in a sentence, they understand it.

Offline activities and variations

  • Be the robot. Draw a grid on the floor with tape or chalk. One person writes a program on paper with arrows, the other walks it exactly, bumping into “walls” if the program is wrong.
  • Loop hunting. Look for repeated patterns in songs, dances or knitting and write them as “repeat 4 times” instructions.
  • Paper mazes with rules. Print a maze and test the left-hand rule with a finger. Then try the right-hand rule. Do both find the exit?
  • Recipe debugging. Write a sandwich recipe with one step missing and ask your child to find the bug.

Common mistakes

  • Forgetting the end of a loop. Everything after a Repeat block is inside it until the “end” block. Unclosed loops are closed automatically at the end of the program, which sometimes repeats more than intended.
  • Mixing up left and right when the robot faces down or left. Encourage pointing in the robot’s direction.
  • Writing a step list on multi-maze levels. If it works on maze 1 but crashes in maze 2, it is time to switch from steps to rules.

Frequently asked questions

Do kids need to know how to type or read code?
No. Every command is a big colored block with an arrow, and children build programs by tapping. The thinking is the same as in programming, without any typing.
What is the "left-hand rule" in the later levels?
It is a classic maze algorithm. If you always keep one hand on the wall, you will find the exit of any maze without loops. In the game, kids build it from if blocks so the robot follows the rule by itself.
Why does one program have to solve several mazes?
That is the big idea of an algorithm. A list of steps only works for one maze, but a rule works everywhere. Levels 13 to 20 show the difference very clearly.
Is there a game for younger coders?
Younger children can warm up with Maze Runner, where they steer the character directly and practise planning a route.

More games like Algorithm Maze

All coding games for kids →