Block Code Maze Unblocked

Play Block Code Maze online for free in your browser. No download, no sign-up.

Block Code Maze gameplay screenshot
  • Partly works on mobile
Report a problem

Turn your phone sideways for a bigger view of this game.

Block Code Maze teaches programming without typing a single line. You build a short program out of colored puzzle-piece blocks, press Run, and an astronaut follows your instructions along a maze of white pipes. Block Code Maze has ten levels, and each one adds a new idea, from simple sequences to loops and decisions, until the last maze needs a program that can find its own way.

How to Play Block Code Maze

The left side shows the maze, the astronaut and a red goal flag. The right side holds a gray toolbox of blocks and a white workspace. Drag blocks into the workspace and stack them so they click together, top to bottom. That stack is your program.

Press Run Program to watch the astronaut carry out each block in order. If it reaches the flag, a message congratulates you and shows the JavaScript your blocks produced. Press OK to move on. If it walks into a wall or stops short, press Reset and change the program.

Early levels need only “move forward” and “turn”. Then “repeat until” arrives, so one loop can replace a long stack. Later mazes add “if path” and “if-else” blocks that check for open paths. Many levels limit how many blocks you may use.

Block Code Maze Controls

Controls for Block Code Maze
ActionMouseTouch
Add a block to your programDrag it from the gray toolbox into the white workspaceDrag it with your finger
Join blocksDrop a block just under or inside another until it clicks in placeDrop it under or inside another block
Remove a blockDrag it onto the trash can or back to the toolboxDrag it onto the trash can
Change a direction in a blockClick the small drop-down arrow on the blockTap the drop-down arrow
Run or stop the programClick Run Program, then ResetTap Run Program, then Reset
Jump to another levelClick a dot or number at the topTap a dot or number

Tips and Strategies

  • Trace the route with your finger first. Count the steps and turns before you build anything.
  • Look for repeating patterns. If the path is “forward, turn left” over and over, put those two blocks inside one loop.
  • Watch the block counter. Running low means the level wants a loop or a decision, not more steps.
  • Turns are relative. “Turn left” means the astronaut’s left, which may be your right when it faces down the screen.
  • Try the wall-follower idea. For the last mazes, keep moving forward and turn whenever a path opens on one side.

Features

  • Ten levels that build from two-block solutions to programs with nested decisions.
  • Generated JavaScript shown after each win, linking blocks to real code.
  • Block budgets that reward short, clever programs.
  • Saved progress for finished levels in your browser.

Tested and updated:

Block Code Maze Unblocked: FAQ

What happens when the astronaut hits a wall?

The run stops with a short spin and a message that your program did not solve the maze. Press Reset, adjust the blocks and run it again.

Why can I not add any more blocks?

Many levels have a block budget shown in the corner of the maze. When it reaches zero you have to delete a block before taking a new one, which pushes you toward loops.

Can I see the code my blocks make?

Yes. Each time you solve a level, the success message lists the JavaScript your blocks turned into, such as moveForward(); lines inside a while loop.

Does it remember which levels I finished?

Solved levels are stored in your browser, and their dots at the top of the page stay filled in when you come back on the same device.

More Free Games to Play Online