Code Quest — a free coding game for kids
Code Quest is a free, browser-based game that teaches children to code by programming Milo the mouse through mazes with blocks. Writing the smartest, shortest program earns Elegance Keys — and enough Keys unlock the White Hat Academy, where children discover what hacking really means. No login, no camera.
Learn to think in code, step by step
Code Quest builds real computational thinking one idea at a time: sequences and loops (a Repeat block instead of copying steps), conditionals (If wall ahead and Repeat until, so one small program can solve a growing maze), functions (name a pattern once and reuse it), and debugging (find and fix a broken program). The Elegance Key is the twist: brute force solves a level, but the Key is only earned by matching “par” — the fewest blocks — so children are pulled to discover loops and functions for themselves.
The White Hat Academy — the truth about hacking
Most children use “hacking” to mean anything sneaky online. Code Quest gently sets the record straight. A white-hat hacker is an ethical hacker who understands how systems work and uses that skill to protect people. The Academy has three defence-first missions: Spot the Trick (most “hacks” are a convincing lie, not magic code), Password Power (see why weak passwords fall in seconds and long passphrases don’t), and Exploit & Patch (find the flaw in a pretend system, then fix it — you only win by patching). It teaches the mindset and the fix, never real attack techniques.
A friendly on-ramp to Scratch
Code Quest isn’t a replacement for creative tools like Scratch — it’s the guided teacher that makes them click. By practising loops, conditionals, functions and debugging as clear puzzles, children arrive at open-ended coding already understanding the ideas.
Made for KS2 classrooms
- Real coding concepts — sequences, loops, selection, functions and debugging — as hands-on puzzles.
- The Elegance Key rewards smart, short code, so children learn why loops and functions matter.
- Curriculum-aligned online-safety and cyber awareness woven in through the White Hat Academy.
- 100% free, no account, no camera; starts fresh on a shared computer each time the browser opens.
The full quest
- 🧩 Sequences & Loops — program a path, then shorten it with a Repeat loop.
- ❓ Conditionals — If wall ahead, and Repeat until, so one program solves growing mazes.
- ✍️ Functions — name a pattern once and Call it wherever you need it.
- 🐞 Debugging — read a broken program, find the flaw, and fix it.
- 🕵️ White Hat Academy — spot the trick, password power, and exploit then patch.
Frequently asked questions
Is Code Quest free?
Yes — it’s completely free to play in your browser, with no login or account required.
Does it teach real hacking? Is it safe?
It teaches the ethical, white-hat mindset and how to defend, using fictional, sandboxed puzzles. It never teaches real attack techniques. The point is to demystify hacking and show the skill is for protecting people.
What ages is it for?
Code Quest is designed for Key Stage 2 (ages 7–11).
Does it use a camera or need a login?
No camera and no login. On a shared classroom computer it also starts fresh each time the browser is opened.
How does it relate to Scratch?
It’s a guided game that teaches the core ideas — loops, conditionals, functions, debugging — so children understand them. It complements creative tools like Scratch rather than replacing them.
What is an Elegance Key?
You earn one by solving a level in the fewest blocks — for example, a loop instead of copied blocks. Collecting Elegance Keys unlocks the White Hat Academy.
Looking for more? Learn to type with Typing Quest, explore the free ICT and Computing activities, or browse all mousecalls subjects.