Free · Learn to code by playing

Robo Run: your code drives the robot.

Program a robot through puzzles using real C++ or Python. Your loops, ifs, and variables make it move, turn, and grab crystals. Get it wrong and your robot shows you exactly where it went wrong, and that's how you learn. Write some code, press Run, and watch.

How to play

  1. Read the level's goal and its 💡 New idea box.
  2. Write code in the editor, or tap the command buttons to insert them.
  3. Press Run to play the whole program, or Step to go one move at a time.
  4. Didn't work? Read the message, fix the line it points to, run again.

The rules

  • You win when your program finishes with the robot on the portal 🌀 and every crystal 💎 collected.
  • You crash if the robot steps into a wall or off the edge. The program stops on that line.
  • A program that takes more than 1,000 steps is stopped. A loop is probably stuck.
  • Stars count your lines. At or under the level's target: ★★★. Up to 2 over: ★★. More: ★. Blank lines, comments and lone { } don't count.

On the board

🤖The robot. The yellow arrow is the way it faces.
🌀The portal. Finish here.
💎A crystal. Stand on it and collect().
A wall. Don't walk into it.
Tiles your code walked on.
The wall you crashed into.
Level 1

—

—
Levels
—
💡 New idea:
0 lines
📖 Commands & syntax
🫣 Peek at one solution
🤖

Your code, alive

Every line you write moves the robot. A loop isn't an abstract idea here. It's your robot walking five steps because you told it to five times, or once in a for.

🐞

Bugs you can see

Off-by-one? Your robot stops one short of the crystal. Walked into a wall? It bonks and tells you the line. Debugging stops being scary when you can watch it happen.

⭐

Shorter is smarter

You can always copy-paste. But fewer lines earns more stars, so you'll want to reach for a loop or an if. That's the whole game of real programming.