- HTML 100%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
Toggle a Tokugawa-era reskin: rice, timber, and koku; the ages Sengoku →
Azuchi–Momoyama → Edo; ashigaru, samurai, and rōnin; a Japanese castle; and a
patience meter that rewards a held line — the Great Unifier's own lesson.
💘 Generated with Crush
Assisted-by: Crush:deepseek-v4-flash
|
||
| games | ||
| lessons | ||
| README.md | ||
Offline Game School
Free, offline, runnable lessons in logic and computer thinking — built as fun and retro games in plain JavaScript. No internet. No install. No cost.
Open any game file in a browser (double-click the .html), and it just runs.
Every game is ONE self-contained file — no libraries, no downloads, no
accounts. This works on old laptops, cheap phones, and school computers that
have no network.
Built for kids and for people learning with little or nothing — starting with the students and families supported by RUN ANGELLA MATHEW CENTER UGANDA LTD (kadondibetty) — a center in Uganda that pays tuition and school supplies for orphans and vulnerable children.
Why games?
You learn to think like a computer by building and playing with logic. Every game here teaches a real computer-science idea, and every game can be opened and changed by the learner. The code is the lesson.
| Game | File | What you learn |
|---|---|---|
| Guess the Number | games/guess-the-number.html |
loops, if/else, binary search |
| Rock Paper Scissors | games/rock-paper-scissors.html |
conditions, random, counters |
| Tic Tac Toe | games/tic-tac-toe.html |
2D arrays, win checking |
| Snake | games/snake.html |
arrays, timers, collision, state |
| Mastermind | games/mastermind.html |
logic deduction, feedback loops |
| Memory Match | games/memory-match.html |
arrays, events, shuffle |
| Age of Gaia | games/age-of-gaia.html |
entities, game loop, economy, waves, targeting — a tiny real-time strategy · + a samurai (Sengoku) layer (rice/timber/koku, ashigaru/samurai, a 城 castle, a patience 忍耐 meter) |
How to use (offline, no internet)
- Copy the
games/folder to any computer or phone (a USB stick works). - Double-click a game file. It opens in the browser.
- Play. Then open the file in a text editor (Notepad, or any editor) and change one number — see what breaks and what changes.
- Read the matching
lessons/playbook for the idea behind the game and the "make it yours" challenge.
Everything works on a school computer that has never seen the internet.
The project-based path (like OSSU, but in one repo)
OSSU is a famous free self-taught computer-science curriculum. This repo is the same idea, project-first: you learn by completing each game as a project.
Stage 1 — Logic (days 1-5)
- Guess the Number — conditionals,
if,while, numbers. - Rock Paper Scissors —
if/else,Math.random(), keeping score. - Memory Match — arrays, shuffle, events, state.
Stage 2 — Structure (days 6-10)
- Tic Tac Toe — 2D arrays, win conditions, functions.
- Mastermind — nested loops, feedback, deduction.
Stage 3 — Real games (days 11-15)
- Snake — arrays of parts, timers, collision, game over.
- Capstone project: build YOUR OWN game (see
lessons/capstone.md).
Every playbook has: What is it · The idea · Map it in the code · Try this · Make it yours (a small next project).
Rules for the repo
- Every game is ONE file, plain HTML+CSS+JS, no libraries, no network calls.
- Must run on an old browser and on a touchscreen phone.
- English must be simple; buttons big; no mouse-only controls.
- You can copy, change, and give this away freely (MIT license).
For teachers and mentors
Each lessons/ file is a 20-30 minute session. The game is the warm-up; the
playbook explains the idea; "Make it yours" is the homework. You do not need
to be a programmer to mentor — the playbooks are written to be read aloud.
Watch & learn — the matching YouTube Shorts
Every idea here also exists as a free YouTube Short (for reach, and so a learner with a phone but no computer still meets the lessons). Watch, then open the game in the repo and change it:
- How computers guess things (binary search) — https://youtu.be/UPD9-e7b21Y
- What is an array (memory game) — https://youtu.be/40dcJc7to5c
- How a computer checks a win (tic tac toe) — https://youtu.be/c7WVp_OSUuM
- The logic of deduction (code breaker) — https://youtu.be/wSMxHZgRt8k
- Why computers use only 0 and 1 — https://youtu.be/JWhzWfXKmaE
- What is recursion (maze) — https://youtu.be/zlYUngWcJ7s
- How games move (timers and states) — https://youtu.be/9LHvaEiANSw
- What is an if statement — https://youtu.be/nAo3erIq-Mc
Each Short's description links back here; this page links to them. Free in both directions — watch, play, change, share.
Credits
- Games and curriculum: peterlodri-sec.
- The Uganda inspiration and the real students it is for: RUN ANGELLA MATHEW CENTER UGANDA LTD (kadondibetty).
- Licensed MIT. Free for any school, center, or learner.
offline game school · fine touch from within · learn by playing