🤖 Robot Maze Coding Puzzles

Build a program with blocks and guide the robot to the flag · 24 levels: sequences, loops, if-checks and bug hunts · Grades 1–6

Pick a level
Solved 0 / 24

Medals: 🥇 gold uses the fewest blocks, 🥈 silver is close, 🥉 bronze still solves it. Medals are saved on this device only.

Level 1

Blocks (tap to add)
Your program
0 blocks

Empty. Tap a block above to add it here.

How to Play Robot Maze

The robot can only do what your program tells it. Tap a block to add it to Your program, then press Run. The robot follows the blocks from top to bottom, and the block it is doing right now lights up. Press Step to do one block at a time, which is the best way to find a mistake.

When you add Repeat or If, new blocks go inside it. Tap a Put new blocks here bar to choose where the next block goes. The arrows move a block up or down, and ✕ deletes it. If you want to put a block in the middle of your program, add it at the end and then move it up with the arrow.

The four chapters

ChapterBig ideaWhat kids practice
1. SequencesOrder mattersPlanning every move in order, and telling the robot's left and right apart from their own
2. LoopsRepeat a patternSpotting the part of a path that happens again, and nesting one loop inside another
3. ConditionalsDecide with a checkWriting one program that works in two or three different mazes by checking the path ahead
4. DebuggingFind and fix the bugReading a broken program, running it step by step and changing as little as possible

Medals for short programs

Every level has a gold target: the number of blocks in our shortest answer. A program that uses that many blocks or fewer earns gold, one or two more blocks earns silver, and any longer program that still reaches the goal earns bronze. Programmers often try to make code shorter and easier to read once it works, so the medal is a nudge to go back and use a Repeat instead of copying blocks.

For Parents and Teachers

Robot Maze is a screen version of the “program your friend” game in Unplugged Coding. A good way to start is to do one unplugged round on the classroom floor, then give pairs one device: one child is the “driver” who taps blocks and the other is the “navigator” who checks the plan, switching every level.

Completion code

Each time a level is solved, the page shows a completion code with the number of levels solved on that device out of 24 (activity ID CRM). Check codes on the Score Checker. Progress and medals are stored in the browser's local storage on that device only. There is no login, and nothing is sent anywhere.

Standards

Robot Maze supports these CSTA K–12 Computer Science Standards (2017):

Sources

FAQ

Do I have to drag the blocks?

No. Tap or click a block to add it, or move to it with the Tab key and press Enter. New blocks go where the highlighted Put new blocks here bar is. Arrow buttons move a block up or down, and the X button deletes it.

Why does the robot turn the wrong way?

Turn left and Turn right are the robot's own left and right, not yours. When the robot faces down the screen, its right is your left. Look at the green arrow on the robot, or turn your device or your body to face the same way.

What does If path ahead do?

It checks the one square in front of the robot. If that square is open, the robot runs the blocks in the then part. If it is a wall or the edge of the maze, it runs the otherwise part instead. Either part can be empty.

How are medals worked out?

Every block counts as one, including Repeat and If blocks and every block inside them. Using the gold number of blocks or fewer earns gold, one or two more earns silver, and any other working program earns bronze. Your best medal for each level is saved on this device only.

What happens if my program never ends?

If the robot takes more than 400 steps without reaching the goal, the program stops and the page tells you. That usually means a Repeat until goal loop where the robot goes back and forth forever.

Keep Exploring

Last reviewed: November 2026