A memory test game built on vanilla javascript.
Here's the demo.
You play the game as follows:
- Begin with an m by n grid of squares. You are free to define m and n as you wish.
- Let r be a number less than (mn) and greater than zero. Color r squares red and color (mn - r) squares blue.
- After s seconds, color all squares white. You are free to define s as you wish.
- 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.