mission_protocol / overview
Every line of code
is a mission.
CodeQuest doesn't hand you a textbook. It drops you into the grid with an objective, a code editor, and a timer. Complete the mission or your character takes damage. Fail too many and you flatline.
mission_briefing.sys · v4.7
[SYS] Initialising mission briefing...
[SYS] Operative status: ACTIVE
[SYS] Health: 8,400 / 10,000 · Food: 2,100 / 5,000 · O2: 4,800 / 5,000
> load_mission --path=javascript --tier=2
[SYS] Mission loaded: DOM Infiltration
[SYS] Difficulty: OPERATIVE · XP reward: 175 · Time limit: 25:00
> briefing
[SYS] "A rogue element has corrupted the DOM tree. Your objective: traverse the
node structure, locate the corrupted elements, and rebuild the interface
using vanilla JavaScript. No frameworks. No shortcuts."
> accept_mission
[SYS] Mission accepted. Code editor online. Timer started.
[SYS] ⚠ WARNING: Mission failure deducts 500 health points.
[SYS] Good luck, operative.
phase_protocol
Four phases. One objective.
Every mission follows the same four-phase structure. You'll know what to expect — but never exactly what you'll face.
01
📡
Briefing
Read the scenario. Understand what's broken, what needs building, or what needs to change. Context is everything.
02
⌨️
Code
Write real code in a live editor. Your solution is executed against test cases — not pattern-matched against a string.
03
🔍
Validate
Your code runs against hidden test cases. Edge cases, error handling, performance — all checked automatically.
04
💎
Debrief
See your score, earn XP and crystals, unlock loot. Review the optimal solution and compare it to yours.
live_example
Inside a mission.
Here's what a real mission looks like. You get a scenario, objectives, a code editor, and a clock.
const corruptedNodes = document.querySelectorAll('.corrupted');
corruptedNodes.forEach(node => {
node.remove();
});
const nav = document.createElement('nav');
nav.id = 'mainNav';
menuData.forEach(item => {
const link = document.createElement('a');
link.href = item.url;
link.textContent = item.label;
link.className = 'nav-link';
nav.appendChild(link);
});
document.getElementById('header').appendChild(nav);
Mission Objectives
✓ Remove all .corrupted nodes from the DOM
✓ Create a <nav> element with id "mainNav"
✓ Generate links from menuData array
Append nav to the #header element
Pass all 6 hidden test cases
Mission Rewards
175 XP
25 Crystals
1× Loot roll
Failure Penalty
−500 HP
Miss the timer or fail validation and your character takes damage. Too many failures and you flatline — losing progress and loot.
threat_classification
Five threat levels.
Missions scale from beginner-friendly to career-level. Higher tiers mean bigger rewards — and bigger consequences for failure.
mission_variants
Six mission types.
Not every mission is the same. Different objectives train different skills — from writing functions to debugging production code.
🏗️
Build
Write code from scratch to meet a specification. Functions, components, algorithms — you architect the solution.
🐛
Debug
Broken code, broken logic. Find the bugs, fix them, make the tests pass. Stack traces are your only clue.
♻️
Refactor
Working but ugly. Rewrite legacy code to be cleaner, faster, and more maintainable without changing behaviour.
🧩
Puzzle
Logic challenges and algorithm design. Optimise for time complexity, space complexity, or both.
📖
Read
Understand unfamiliar code. Answer questions about what it does, predict outputs, identify patterns.
⚡
Sprint
Timed rapid-fire challenges. Multiple small problems, strict time limits. Speed and accuracy under pressure.
Boss Protocol
The final boss.
Every learning path ends with a boss fight — a multi-part coding challenge that tests everything you've learned. Build a complete project under pressure, with no hints and no second chances. Pass and you earn the constellation badge. Fail and you restart the mission from scratch.
BOSS
Ready for your first mission?
Start with a free 7-day trial. Pick a faction, choose your path, and drop into the grid. Your first mission starts in under 60 seconds.
Begin your quest ›