A small browser game that finds how many things you can hold in your head at once.
Play: https://and.github.io/memory/
| Mode | What you do | Typical adult span |
|---|---|---|
| Digits | Digits flash one at a time; type them back in order | 5 to 8 |
| Reverse | Same, but type them backwards | 4 to 6 |
| Pointers | Variables get values and copies (a = 4, b = a); give every final value |
No published norms |
Each correct round adds one item. A miss costs a life; three lives per game. Correct answers in a row build a streak that multiplies your points. The highest level you clear is your span for that mode.
Pointers mode was made for this game. It is the closest to tracing pointers in a linked-list loop, which is why it exists.
- A switch next to the title picks the view. Practice runs offline: rounds are made in the browser, nothing is sent, and a graph under each mode tracks your progress. Live games count on the public leaderboard, which has a tab per mode plus a Total tab (each player's best game in every mode, added up).
- The leaderboard runs on a small Cloudflare Worker that creates every round and checks every answer, so scores can't be made up in the browser. Setup is in worker/README.md. Without it, only Practice is available and history stays in
localStorage. - The first time someone plays a Live game, they get a random, work-safe nickname (like "Swift Otter 42") that they can keep, shuffle or replace. They can change it later.
- Digit span is modelled on the standard clinical task (one digit per second, adding one each level), but this is a game, not a clinical test. Scores vary by about one level from day to day.
- No build step:
index.htmlandgame.js. - Planned work is in ROADMAP.md.
Open index.html in a browser, or serve the folder:
python3 -m http.server 8000