Skip to content

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

Order Stack Memory Game

This is a local browser simulation of the adaptive difficulty game.

How to Run

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 Mapping

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

What the Code Does

  1. index.html creates the game screen.
  2. styles.css controls the layout and visual design.
  3. src/holeConfig.js stores the 12 simulated holes.
  4. src/difficultyEngine.js calculates the difficulty for each level.
  5. src/roundGenerator.js creates each round using the current difficulty.
  6. src/gameState.js tracks level, score, chances, player input, and round history.
  7. src/uiRenderer.js updates the browser screen.
  8. src/main.js connects keyboard input, timers, game state, and UI.

Game Logic

  • 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.

Adaptive Difficulty

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.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages