Your result

kody
Join Kody

Beginner · Level 3

TOWER LEVEL 3

Choose your path

Conditions

Crystal Collector

Goal

Reach column 5, row 2 and collect all 2 crystals without leaving the path.

Game board

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

Pseudocode

0 / 12 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
Conditions

Predict when an IF action runs and when it is skipped.

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

Finish on the flag with no crystals remaining, using at most 12 body instructions.

Show a hint

Trace the path one move at a time. The goal requires all 2 crystals to be collected.

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.

About this level

Predict when an IF action runs and when it is skipped.

These trials stay in this browser and grant no saved progress or rewards.

Report an issue

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