Maze Roller
Code a robot ball through three mazes with roll and wait blocks, on carpet, on ice and through wind tunnels.
- Teaches: Debugging
- Free
Free. No sign-in. Works best on a laptop or Chromebook.
How to play
The motor rolls the ball one square every second, and each dot on the floor is one square. Add roll blocks (a direction and a number of seconds) and wait blocks (motor off), then press Run.
- Carpet. The ball stops where you tell it to. The starter program stops short of the corner. Fix the number, then finish the route.
- Ice. Low friction means the ball keeps sliding after the motor stops. Add a wait before each turn.
- Wind tunnels. Wind slows the ball, speeds it up or pushes it sideways.
Fewer bumps into the walls earns more stars.
What you are learning
Your first program rarely works. Run it, watch where it goes wrong, change one thing and run it again. That loop of testing and fixing is called debugging, and it is most of what programming is.
Try it on a real robot
This is the same job as driving a Sphero robot ball through a maze taped on the floor. A real Sphero slides more on tile than on carpet, just like the ice level.