Learn to code by solving puzzles.
Eight interactive coding challenges. Write code to guide your hero across the dungeon, manipulate stacks, and master algorithms with live visual feedback.
Curriculum Challenges
8 Progressive PuzzlesThe First Step
Set the variable steps to 3 to walk the hero forward to the treasure chest.
The Gatekeeper
Set the variable password to "open" to lower the iron gate and walk 4 paces to the goal.
The Danger Tile
Inspect the tile ahead. If it is "lava", use jump() to clear the trap; otherwise use step().
March Forward
Advance across the corridor using a while loop until the hero reaches the goal.
Gem Collector
Traverse the 5-tile bridge, collecting all gems along the way.
The Inventory Bag
Extract the potion from index 0 and the key from index 2 to unlock the sealed gate at (3, 0).
The Stone Pedestal
Push 3 stones onto the pedestal stack, then pop the top stone to reveal the hidden key.
The Dual Bridges
Advance two pointers from opposite ends of the bridge until they meet at the central keystone (3, 0).
5 Modern Languages
Code in Python, JavaScript, TypeScript, Ruby, or Lua with instant client-side execution.
Visual 2D Feedback
Watch character steps, stack pillars, and dual-pointer arrows animate directly on screen.
Progressive Hints
Gentle nudges, logic clues, and complete code snippets are available whenever you need guidance.