Program a robot with arrow and Repeat blocks to collect every gem. A free coding game for kids ages 7–11 that teaches loops and nested loops in 20 levels.
How to play Loop Robot
A friendly robot stands on a grassy board with sparkling gems to collect and gray rocks to avoid. Your child builds a program from blocks, then presses Run and watches the robot follow the instructions one by one. Each block lights up while it runs, so it is easy to see exactly where a plan goes wrong.
- Arrow blocks move the robot one square up, down, left or right.
- Repeat blocks (purple) run everything inside them several times. Tap the ×3 badge to change the number.
- Tap a block in the program to remove it, or use the trash button to start over.
- Tap inside a Repeat to make it the active spot, so new arrows go inside the loop. Blocks can also be dragged straight into the program or into a loop.
On a computer, the arrow keys add arrow blocks, R adds a Repeat, Backspace removes the last block and Enter runs the program.
Each level shows a block limit and a star target. The limit gets tighter as levels go on, so long lists of arrows stop fitting and loops become the smart choice.
| Levels | New idea |
|---|---|
| 1–3 | Sequences: put arrow blocks in the right order |
| 4–7 | Repeat one move: walk a long straight line with a single loop |
| 8–11 | Repeat a pattern: stairs and zigzags with two to four arrows inside a loop |
| 12–14 | Two loops in a row: break a path into parts |
| 15–20 | Nested loops: a Repeat inside a Repeat for big staircases and snake paths |
Every board is generated fresh, so replaying a level gives a new path to solve.
What your child learns
Sequencing. A program runs in order, one step at a time. Getting the robot to a gem means thinking through every step before pressing Run, which is the foundation of all coding and also of following a recipe or a set of directions.
Spotting patterns. Loops only help if you notice something repeating. “Right, down, right, down, right, down” is just “right, down” three times. Finding that repeating unit is pattern recognition, a skill that also matters in math, music and reading.
Abstraction. A loop is a way of saying a lot with a little. When children nest one Repeat inside another, they are holding two levels of structure in their head at once. That is a big step in logical thinking.
Debugging. Programs rarely work the first time, even for adults. When the robot bumps into a rock, your child watches the highlighted blocks, finds the mistake and tries again. Learning that errors are normal and fixable is one of the most useful lessons coding teaches.
Efficiency. The star target rewards short programs. Kids naturally start asking, “Can I do this with fewer blocks?” Comparing two working solutions and choosing the simpler one is problem solving.
Tips for parents
- Trace with a finger first. Before building, ask your child to trace the path on the screen and say the moves out loud.
- Look for the repeat. Ask, “Which part happens again and again?” Then help them put only that part inside the loop.
- Run often. Encourage short test runs. Building a few blocks and checking them is how programmers work.
- Celebrate bugs. When the robot crashes, say “Great, now we know where the bug is!” This keeps frustration low.
- Talk about counting. Many mistakes are off by one. Counting squares together is good math practice too.
Offline activities and variations
- Be the robot. Lay out paper squares on the floor and let your child give you arrow commands. Then say “repeat 3 times” and watch them discover loops with their whole body.
- Dance loops. Make up a dance: clap, stomp, spin, repeat four times. Songs and dances are full of loops.
- Write a loop on paper. Draw arrows for a path through a grid on graph paper, then rewrite it in as few symbols as possible using brackets and a number.
- Everyday loops. Brushing teeth, setting the table for four people, climbing stairs: ask your child to spot the repeating steps in daily routines.
Common mistakes
The most common mistake is putting too much inside a loop, for example the turn that should happen only once. Another is the off-by-one count, where the robot walks one square too far and bumps into a rock. Both are easy to see because the program lights up as it runs, so let your child watch closely and fix it on their own before stepping in.