Coding Game for Kids: Code the Robot
Code the Robot is a free coding game where children write a short program of arrow commands, press Run and watch a robot follow their code step by step to reach the star.
Code the Robot
Loading game…
- Ages
- 5–11
- School years
- K2–Primary 6
- Skills
- Sequencing: putting instructions in the right order, Planning a route on a grid using up, down, left and right, Debugging: finding and fixing mistakes in a program
- Time
- 2–5 minutes a round
- Cost
- Free, no sign-up
- Updated
How to play Code the Robot
- Choose a level: Beginner, Explorer (with walls) or Loops (with repeat blocks).
- Tap the arrows, or press the arrow keys, to build a program that leads the robot to the ⭐.
- Press Run (or Enter) to watch the robot follow your code. If it bumps into a wall, fix your program and try again.
- Solve 5 puzzles. The shorter your program, the more stars and points you earn!
What your child learns
- Sequencing: putting instructions in the right order
- Planning a route on a grid using up, down, left and right
- Debugging: finding and fixing mistakes in a program
- Using loops (repeat blocks) to write shorter code
- Finding the most efficient solution to a problem
About Code the Robot
Coding is about giving clear, step-by-step instructions, and that is a skill children can learn long before they type a line of code. In Code the Robot, every puzzle is a small program: children plan a route, turn it into arrow commands, run it and watch what happens. When the robot bumps into a wall, they debug their program, just like real programmers do.
Beginner puzzles on a 5 × 5 grid suit K2 to Primary 1. Explorer adds walls on a 6 × 6 grid for Primary 2–3, so children must plan a detour. Loops, for Primary 4–6, has a block limit on a 7 × 7 grid, so children must use repeat blocks (×2, ×3, ×4) to shorten their code. Every puzzle is checked by the computer to make sure it can be solved, and the game knows the shortest possible program, so children can aim for a perfect score.
Which level should my child play?
| School year | Suggested level |
|---|---|
| K2 | Beginner |
| Primary 1 | Beginner |
| Primary 2 | Explorer |
| Primary 3 | Explorer |
| Primary 4 | Loops |
| Primary 5 | Loops |
| Primary 6 | Loops |
Move up a level after getting three stars two or three times in a row.
🏆 Leaderboard
Full leaderboard →Play a round to get on the board! Create a free account to save your scores.
Frequently asked questions
Do children need to read to play?
Very little. The commands are arrows, the robot, star and walls are pictures, and the game shows the program as a row of arrow blocks. A grown-up may need to explain the buttons the first time.
What is a loop in coding?
A loop repeats an instruction. Instead of writing → → → →, you can write → ×4. Loops make programs shorter and easier to read, which is why the Loops level sets a limit on how many blocks you can use.
How are stars and points worked out?
For each puzzle, you get 3 stars if your program is as short as the best possible solution, 2 stars if it is up to 2 blocks longer, and 1 star otherwise. Points also go down a little each time the robot crashes or stops early.
More games you’ll love
All logic & memory games →Flip cards and find all the matching pairs.
Kid-sized 4×4 and 6×6 sudoku puzzles.
Series, codes, ordering clues and “must be true” logic.
Analogies, odd one out, hidden words, synonyms and codes.
Add numbers within 10, 20, 100 or 1,000.
Practise any times table from 2× to 12×.
Help your child shine in school
Practice at home is a great start. Success Tutoring offers personalised tutoring to build skills and confidence.