Star Wars Terminal Quest is a safe, terminal-only computer science adventure for young learners. It begins with command-line basics and progresses through programming, debugging, testing, version control, and independent problem solving.
Every mission gives:
- a short story moment
- a story-style explanation of the command
- an objective with progressively revealing hints
- the actual result inside a safe virtual computer
Early missions teach exact commands. Later missions accept multi-step and alternative solutions by validating their output and final virtual-computer state. The game never applies lesson commands to real files.
The simplest launcher is:
./start.shYou can also run it directly with Python:
python3 main.pyThe campaign contains 65 missions across 12 chapters:
- terminal state and navigation;
- reading and creating information;
- organizing and safely removing data;
- searching and filtering transmissions;
- pipes, redirection, chaining, and wildcards;
- variables, values, and expressions;
- comparisons, conditions, and Boolean logic;
- lists and loops;
- functions, mappings, and algorithms;
- debugging and automated simulation tests;
- simulated Git status, diffs, commits, history, branches, and merges;
- open-ended capstones that combine the full curriculum.
The game records mastery evidence separately from story progress. Type skills during play to inspect attempts, hints, mastery stages, and recommended review topics.
python3 main.py --reset
python3 main.py --no-save
python3 main.py --start-task 8--resetstarts from mission 1 and clears saved progress.--no-saveruns without writing progress to disk.--start-taskjumps to a specific mission while testing.
hintshows a clue for the current mission.repeatshows the mission again.progressshows stars and mission progress.skillsshows mastery evidence and recommended reviews.resetresets the current mission room.exitleaves the game.
The campaign now has a story-neutral skill registry, dependency graph, and explicit mission types. See the curriculum and the skill tree.
Validate the teaching order and run the tests with:
python3 tools/validate_curriculum.py
python3 -m unittest discover -s tests -v
python3 tools/smoke_campaign.pyThe smoke test completes all 65 missions through the same game loop used by a player.
- Product vision
- Curriculum
- Skill tree
- Architecture
- Mission design
- Story bible
- Contribution guide
- Development phases
The repository also includes a star_wars_training folder with the original static Star Wars exercise prototype. The runnable game uses its own virtual file system, so the command story can restart cleanly every time.