Your result

kody
Join Kody

Collect on the way

Change activity
Conditional execution

Collect on the way

Goal

Reach the flag and collect one crystal. Enable the collection rule.

Game board

Not run
Reach the flag1 crystals left
Board guide
Your explorerFollow the pathGoal

Pseudocode

0 / 2 instructions

Add moves below. Kody moves when you press Run.

Add a move to start your pseudocode

Add instructions, then run your pseudocode.

Edit steps
How it works
Conditional execution

Trace both true and false branches of an IF rule.

Key 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.

Worked example
Different example: after a move onto an empty tile, kody.on_crystal() is false. kody.collect() is skipped; movement continues.
Win condition

Complete the pseudocode and concept check.

Show a hint

The same IF rule runs after each move, including an empty tile.

Related modules
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.

WELCOME TO KODY

A little play. A lot of possibility.

I’m Kody, your coding companion. Your adventure is ready. Let’s find our way around.

Log in