About this game
How to play Code Runner
Code Runner is a web development dojo for HTML, CSS and JavaScript. You work through 7 belts and 42 missions, from your first heading to a working to-do list, calculator and quiz. Every mission has three real files, index.html, style.css and script.js, a live preview and a console. When you press Run, an examiner opens your page, clicks your buttons and types in your boxes to check that it really works. Everything runs inside your browser, so there is nothing to install and no sign-up.
🎯 What it teaches
- HTML structure: headings, paragraphs, lists, links, images, tables, forms and layout tags such as header, nav, main and footer.
- CSS styling and layout: colours, fonts, classes and ids, the box model, hover effects, Flexbox, Grid and media queries for phones.
- JavaScript: console.log, variables, if and else, loops, arrays, functions, click events, reading inputs and changing the page.
- Small real projects that bring all three together.
🕹️ How to play
- Pick a belt. The White Belt starts with plain HTML, and each belt builds on the one before it.
- Open a mission and read the task. Open "What the examiner checks" to see exactly what will be tested.
- Write your code in the right file tab. Use the symbol keys under the editor if you are on a phone.
- Press Run and check (or Ctrl and Enter). Your page appears in the Preview, and the examiner shows a tick or a cross for every check, with a reason for anything that fails.
- Pass a mission without help for 10 coins, after a hint for 6, or after seeing the answer for 3. Finish all six missions in a belt to earn it.
- Open the Playground any time to build whatever you like, with Auto-run and ready-made examples.
💡 Tips
- Change one thing at a time and run it, so you always know which change broke the page.
- If a button does nothing, open the Console tab first. A red error message names the line in script.js to fix.
- In JavaScript missions the examiner tests your code with values it chooses itself, so write code that works for any value rather than typing the answer.
- A loop that never stops is halted after two seconds. Check that its condition eventually becomes false.
👥 Who it is for
Code Runner is made for school students taking computer science, beginners learning web development, and teachers who want a ready-made set of practical exercises for the computer lab. Progress and code are saved in your browser, so you can come back and carry on where you left off.
Free to play on computermafia.com. No sign-up, nothing to install.
