Collect only when needed
Collect only when needed
Collect both crystals and reach the flag. Enable the collection rule.
Game board
Not runBoard guide
Pseudocode
0 / 8 instructionsAdd moves below. Kody moves when you press Run.
Add instructions, then run your pseudocode.
Edit steps
How it works
Trace both true and false branches of an IF rule.
Instructions run from top to bottom. Columns increase to the right; rows increase downward. Coordinates shown to you start at 1. With the crystal rule enabled, IF is checked after every successful move.
Different example: after a move onto an empty tile, kody.on_crystal() is false. kody.collect() is skipped; movement continues.
Complete the pseudocode and concept check.
Show a hint
The rule is checked after every move, including moves onto empty tiles.
Keyboard & tips
Focus the game, then use arrow keys to add moves and Enter to run. Select an instruction to move or remove it. With an instruction focused, Alt + Left/Right reorders it and Delete removes it.
Goal reached. Trace both true and false branches of an IF rule.
Find another module