Conditions (if)Ages 8–124 levels

Treasure Hunter

The treasure moves on every island! Write one program that works everywhere using “if”.

How to play

Goal: Collect every treasure and reach the flag — your program is tested on several islands.

Controls: Tap a block to add it at the gold marker. Tap between blocks to move the marker. Press Run to watch your program.

What you'll learn: A condition lets a program make a decision: IF something is true, do this. The same program can behave differently in different situations.