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

Chapter 3 levels