💎 Chapter 5: Projects · Level 30 of 30
Level 30: Grand Gem Maze
Goal: The final challenge: a twisty maze full of gems. Collect every one and reach the star. ★★★ = 10 blocks or fewer.
▶ Watch how it works
Everything together: a loop, two ifs and pick-ups find every gem in the maze.
Got it? Now solve your puzzle ↓ (a different board — work it out yourself!)
Blocks — tap to add
Your program
💡 Need a hint?
Use the smart rule from “Smart Robot”, and pick up a gem after every move forward.
What you learn here
You used sequences, loops, debugging and conditions together. That is how real programs are built!
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.
- ❓if path aheadIf the square ahead is free, runs the first part; if a rock or the edge is ahead, runs the “else” part.
- 🔂repeat until starKeeps running the blocks inside until the robot is on the star.