Skip to content

Reflex-Gravity/memory-game

Repository files navigation

memory-game

A memory test game built on vanilla javascript.

Here's the demo.

Rules

You play the game as follows:

  1. Begin with an m by n grid of squares. You are free to define m and n as you wish.
  2. Let r be a number less than (mn) and greater than zero. Color r squares red and color (mn - r) squares blue.
  3. After s seconds, color all squares white. You are free to define s as you wish.
  4. The player then needs to click the squares that were previously red. If he/she clicks a blue square, he/she loses. When the player has found all the red squares, he/she wins. Please notify the user accordingly.