💎 Chapter 5: Projects · Level 29 of 30
Level 29: Gem Bug
Goal: This collector program picks up in the wrong place. Debug it! ★★★ = 8 blocks or fewer.
▶ Watch how it works
A gem bug: watch where the robot tries to pick it up.
Got it? Now solve your puzzle ↓ (a different board — work it out yourself!)
Blocks — tap to add
Your program
💡 Need a hint?
The gems are at the bottom of each step, but the program picks up at the top. Move the 💎 block.
What you learn here
Use Step to see the exact block where a program goes wrong — then the fix is easy.
Chapter 5 — Projects: Collect every gem on the way and use everything you have learnt — with the fewest blocks you can.
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.
- 💎pick up gemPicks up the gem on the robot’s square.
- 🔁repeatRuns the blocks inside it again and again — tap − and + to choose how many times.