Code Blocks

Program a little robot with Forward, Turn left and Turn right blocks to collect every star. A daily puzzle and 30 levels teach real step-by-step thinking.

Code Blocks

0% · Getting ready

Loading Code Blocks 0%

Watch a 20-second trailer

A real run of the game, recorded with captions and no sound.

How to play

  1. The robot starts on the square marked start, facing the way its arrow points.
  2. Tap Forward, Turn left and Turn right to build a program. Each level has a limit on how many blocks you may use.
  3. Press Run. The robot follows your blocks one after another and the squares it crossed turn blue.
  4. Collect every star to win. A wall stops the robot, so it stays where it is when it bumps into one.

Controls: mouse or touch. Made by CalcoTools.

Tips and strategy

  • Trace the path by hand first and write down each move before you add blocks.
  • Remember that turning only changes the way the robot faces: it moves only on Forward.
  • If a run fails, look at the blue path: it shows exactly where the program went wrong.
  • The block limit is just above the shortest program, so there is always room, but not much to waste.

FAQ

Does the robot move when it turns?
No. Turn left and Turn right only rotate it on the spot. Only Forward moves it.
What happens if the robot bumps a wall?
It stays where it is and carries on with the next block.
Is every level solvable?
Yes. A search finds the shortest program for each level, and the block limit is set just above it.

Similar games

Something not working? Report a problem with this game.