🐞 Chapter 3: Debugging · Level 16 of 30
Level 16: Upside-Down Stairs
Goal: This staircase program goes down instead of up. Fix the turns inside the loop. ★★★ = 5 blocks or fewer.
▶ Watch how it works
The bug is inside the loop — so it happens every round.
Got it? Now solve your puzzle ↓ (a different board — work it out yourself!)
Blocks — tap to add
Your program
💡 Need a hint?
The turns are swapped. Inside the loop, the robot should turn left first and right second.
What you learn here
When a bug is inside a loop, it happens every time the loop goes round — so fixing one block fixes them all.
Chapter 3 — Debugging: Each level starts with a program that has a mistake. Run it, watch where it goes wrong, and fix it.
Blocks in this level
- ⬆️move forwardThe robot moves one square the way it is facing.
- ↩️turn leftThe robot turns to its left on the same square.
- ↪️turn rightThe robot turns to its right on the same square.
- 🔁repeatRuns the blocks inside it again and again — tap − and + to choose how many times.