🤖 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
Medals: 🥇 gold uses the fewest blocks, 🥈 silver is close, 🥉 bronze still solves it. Medals are saved on this device only.
Level 1
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.
- Forward moves one square the way the robot faces (the green arrow).
- Turn left and Turn right spin the robot a quarter turn on the spot. They do not move it to a new square.
- Repeat runs the blocks inside it 2 to 9 times. Use + and − to change the number.
- If path ahead looks at the square in front of the robot. If it is open, the robot does the then part. If it is a wall or the edge, it does the otherwise part.
- Repeat until goal keeps running the blocks inside it until the robot reaches the flag.
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
| Chapter | Big idea | What kids practice |
|---|---|---|
| 1. Sequences | Order matters | Planning every move in order, and telling the robot's left and right apart from their own |
| 2. Loops | Repeat a pattern | Spotting the part of a path that happens again, and nesting one loop inside another |
| 3. Conditionals | Decide with a check | Writing one program that works in two or three different mazes by checking the path ahead |
| 4. Debugging | Find and fix the bug | Reading 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.
- Say it before you run it. Ask students to point at the robot and say the program out loud before pressing Run. Most chapter 1 mistakes are left/right mix-ups when the robot faces down or left.
- Step, do not restart. In chapter 4, ask students to use Step and stop at the first block that goes wrong. Then ask, “What did you expect to happen? What happened instead?”
- Talk about the medals. A bronze program is still correct. Ask what is the same about each part of the path, and how a loop could say it once.
- Several mazes, one program. In chapter 3 the same program has to work in every maze shown. That is why a check like If path ahead is needed: counting squares no longer works when the mazes are different.
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):
- 1A-AP-10: “Develop programs with sequences and simple loops, to express ideas or address a problem.” (Chapters 1 and 2)
- 1A-AP-11: “Decompose (break down) the steps needed to solve a problem into a precise sequence of instructions.” (Chapter 1)
- 1A-AP-14: “Debug (identify and fix) errors in an algorithm or program that includes sequences and simple loops.” (Chapter 4)
- 1B-AP-10: “Create programs that include sequences, events, loops, and conditionals.” (Chapter 3)
- 1B-AP-15: “Test and debug (identify and fix errors) a program or algorithm to ensure it runs as intended.” (Chapters 3 and 4: one program is tested in several mazes)
- 2-AP-12: “Design and iteratively develop programs that combine control structures, including nested loops and compound conditionals.” (Levels 11, 17 and 18 for older students)
Sources
- Computer Science Teachers Association: CSTA K–12 Computer Science Standards (2017) progression chart
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
- Turtle Draw: type or tap commands to draw shapes, stars and spirals.
- Sorting Algorithms: see how bubble, selection and insertion sort put cards in order.
- Unplugged Coding: no-screen coding games with printable cards.
- Robot Commander: solve math to move a robot, plus a Code Lab with arrow blocks.
- Binary Numbers: count with 1s and 0s like a computer.
- Beat Maker: a drum pattern is a program too: loops of 16 steps.
- Coding and Computers: all the coding games and lessons.
Last reviewed: November 2026