Skip to content
KBHXgamesAll games

Play Block Code Maze Online

Stack move, turn, loop and if blocks to guide an astronaut to the flag through ten pipe mazes.

Block Code Maze gameplay screenshot
  • Phones: some features

Tip: rotate your phone to landscape for a larger screen.

Block Code Maze at a glance

Genre
Puzzle Games
Play with
Mouse, Touch screen
On phones
Partly
Players
1 player
Price
Free, no sign-up
License
Apache-2.0

Block Code Maze is a beginner coding puzzle where you write programs by snapping blocks together. An astronaut stands in a maze of white pipes, and a red flag marks the exit. You never steer the astronaut by hand. You plan the whole route ahead of time, press Run and watch to see if your plan was right. It is a calm, clear way to learn how programs think.

The Goal

Get the astronaut to the flag using only the blocks you place. There are ten levels. Each one brings in a new idea, starting with plain steps and ending with a maze the program has to solve on its own.

How a Round Plays Out

The maze is on the left. On the right is a gray toolbox and a white workspace. Drag blocks into the workspace and drop them under each other until they snap together. The stack runs from top to bottom.

Press Run Program, and the astronaut carries out one block at a time. If it reaches the flag, you get a win message with the matching JavaScript, then OK sends you on. If it hits a wall or stops early, press Reset and rework the stack.

The first mazes use only move forward and turn. Next comes repeat until, which lets one loop do the work of many blocks. Later levels add if path and if-else checks, so the astronaut can react to openings. Many mazes also limit how many blocks you may use.

Keys and Buttons for Block Code Maze

Keyboard, mouse and touch controls for Block Code Maze
What you do🖱 Mouse👆 Touch
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

Winning Strategies

  • Plan the route before building. Count the steps and the turns on screen first.
  • Spot the repeating chunk. If the path keeps going “forward, then turn”, put that pair in a loop.
  • Read the block limit as a clue. A tight budget means the maze wants a loop or an if check.
  • Think from the astronaut’s view. Left and right depend on where it faces, not on your screen.
  • Hug one wall on the last mazes. Keep going forward and turn whenever a side path opens up.

Common Mistakes

  • Mixing up your left with the astronaut’s left when it faces down.
  • Building a long chain of single steps when a loop would fit the budget.
  • Putting a turn outside the loop when it needs to be inside.

Who Should Play It

It is ideal for kids and adults trying programming for the first time, and for anyone who likes step-by-step logic puzzles. If you like path-planning puzzles or robot-instruction games, this will click quickly.

Played and checked by the KBHX Games team · updated

Block Code Maze: Questions and Answers

Is Block Code Maze free, and does it need typing?

It is free in your browser, and you never type code. Every level is solved by dragging blocks. After a win, the game shows the JavaScript your blocks stand for, so you can still see what real code looks like.

Why won't the toolbox let me add another block?

Many mazes set a block limit, shown in a corner of the maze. Once it hits zero, you have to delete a block before you can add one. That is a hint to use a loop or an if block instead.

What happens if the astronaut runs into a wall?

It spins, the run stops, and a note says the maze is not solved. Press Reset, change your stack and try again. There is no penalty for retrying.

Will my progress be saved?

Yes, in your browser. The dots at the top stay filled for finished levels when you come back on the same device, and you can tap any dot to replay a level.

If You Liked Block Code Maze, Try These