Your result

kody
Join Kody

Collect through the detour

Change activity
Conditional execution

Collect through the detour

Goal

Collect three crystals and finish at the flag within 9 moves.

Game board

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

Repair mission

1 edit available

Run or step through the broken pseudocode. Replace one line to reach the goal.

Pseudocode

0 / 9 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

Not every move collects a crystal. Trace where the IF rule is TRUE.

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