Chapter 3: Debugging · Level 15 of 30

Level 15: Too Many Times

Goal: The loop goes round too many times and bumps the rock. Fix the number. ★★★ = 5 blocks or fewer.

▶ Watch how it works

Many bugs are a wrong number. Watch this loop.

Got it? Now solve your puzzle ↓ (a different board — work it out yourself!)

Blocks — tap to add

Your program

💡 Need a hint?

Count the squares the robot must walk before it turns. Use − on the repeat block.

What you learn here

Many bugs are a wrong number. Counting carefully is part of coding.

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