Quest Compiler
Write actual code — loops, conditionals and variables — to steer a hero through a dungeon as enemies tick closer.
How to play
Type a short program in a real code editor using move, turn and collect commands plus if/else, while loops and variables. Run it and watch the hero execute one statement at a time with a visible instruction pointer. Every action costs a tick — and the enemies advance on that same tick — so reach the exit efficiently. Clear every campaign level to win the day.
- Write code with move(), turn(left/right) and collect()
- Use if/else and while conditions on what's in front of the hero
- Declare and update variables to control loops
- Reach the exit, collecting gems, before the enemies catch you
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
- Use Step to watch the instruction pointer and catch exactly where your logic goes wrong
- A while loop reading 'front' lets one short program handle corridors of any length
- Fewer ticks mean fewer enemy moves — efficient code is also safer code
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.
- Skills: coding fundamentals, variables, loops, conditionals
- Best for: roughly grades 5–10 (ages 10–16)
- 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. Browse all games →