This is a local browser simulation of the adaptive difficulty game.
Open index.html in a browser.
You can also run it from VS Code with the Live Server extension, but no install is required for the basic version.
| Hole | Keyboard key | Object word |
|---|---|---|
| 1 | A | Apple |
| 2 | B | Book |
| 3 | C | Cup |
| 4 | D | Dice |
| 5 | E | Envelope |
| 6 | F | Flower |
| 7 | G | Grapes |
| 8 | H | Hat |
| 9 | I | Ink |
| 10 | J | Jar |
| 11 | K | Key |
| 12 | L | Lamp |
index.htmlcreates the game screen.styles.csscontrols the layout and visual design.src/holeConfig.jsstores the 12 simulated holes.src/difficultyEngine.jscalculates the difficulty for each level.src/roundGenerator.jscreates each round using the current difficulty.src/gameState.jstracks level, score, chances, player input, and round history.src/uiRenderer.jsupdates the browser screen.src/main.jsconnects keyboard input, timers, game state, and UI.
- Start with 3 chances.
- Watch the sequence.
- On harder levels, the sequence may disappear briefly before input begins.
- Press the matching keyboard letters in the same order.
- Correct answer: score increases and level increases.
- Wrong answer or timeout: lose 1 chance.
- The game ends when chances reach 0.
The game becomes harder by changing:
- sequence length
- display time
- number of active holes
- input time limit
- memory delay
- special rule rounds
This means the game can keep scaling without manually writing every level.