Write actual code, loops, conditionals and variables, to steer a hero through a dungeon as enemies tick closer.
Was this fun?
How to play
You do not steer the hero, you write the program that does. Your code is compiled and run one statement at a time through a dungeon of walls, gems and an exit — and the crucial rule is what costs time. Only actions advance the world's clock; everything else the program does is free.
Moving, turning and collecting are actions, and each one ticks the world forward.
Enemies take a step toward the hero on every tick, so their movement is paid for by yours.
Assignments, conditions and jumps do not tick the clock at all.
So a long calculation costs nothing while a single wasted step costs you distance.
The program runs to completion or until the hero reaches the exit — you cannot intervene once it starts.
Controls
Desktop: type in the editor, then click Run, Step, Reset or Load Hint
Phone & tablet: tap the editor to type and use the on-screen buttons; a physical keyboard is recommended for coding
Tips & strategy
Think as much as you like, then act once. Because only actions tick, the cheapest program is the one that computes the right move before making any.
A loop that checks before it steps is strictly better than one that steps and corrects, even though it is more code.
Turning costs a tick. A route that avoids a turn is often faster than a shorter route that needs two.
Enemies only move when you do, so standing still is not possible but thinking still is — use conditionals to avoid moves you would have to undo.
Test the logic against the worst starting position. The program cannot be adjusted once running, so it has to be right for every case the level can present.
What you'll learn
Quest Compiler is a learn-to-code puzzle with a real mini-language of loops, conditionals and variables, a gentle first programming language.
For parents & teachers: a real first programming language, gently introduced.
About Quest Compiler
Quest Compiler is an original learn-to-code puzzle with a real mini-language of loops, conditionals and variables. Play free in your browser with daily and practice campaigns.
A free, original browser game on PlayPendium. No download, no install.