/memory-card-game

Primary LanguageCSSMIT LicenseMIT

Memory Card Game Spec

Demo

Elements

  1. Play time counter
  2. Move counter
  3. Restart Button to reset all states
  4. Game finish popup
  5. 2 levels, easy: 4 x 4, hard: 6 x 6

Rules (Ref)

  1. The objective is to collect all pairs of cards
  2. Shuffle the cards and lay them on the table, face down, in rows.
  3. The player turns over any two cards (one at a time). If it is the first turn, start the time counter.
  4. Keeps the cards opened in step 3 if the cards match, otherwise turn them face down again after 0.5 sec. No card is allowed to be opened until this step is finished.
  5. Move counter add 1.
  6. Repeat 3 to 5 until all cards are opened(Game Finished)
  7. Stop the timer
  8. Popup congratulation message.
  9. Go to step 2

Reference

https://jtrfs.github.io/memory-game/

Bonus

Make a cheat script run in console to auto play the game