Skip to content

Latest commit

 

History

History
33 lines (25 loc) · 954 Bytes

README.md

File metadata and controls

33 lines (25 loc) · 954 Bytes

memory-game

In this game, a player is presented with a number of cards. Each card has a number on one side and is blank (empty) from the other side. To start the game, the player is asked to choose the number of cards to play (4, 8 or 12). After that, they will see the cards on the screen with random numbers displayed on them and one button “Play”.

When they click the play button, cards will be flipped to the blank side. The player is then asked to click on the cards in ascending order of the numbers that are on the other side.

Example turn:

Player chooses 4 cards.

  • Cards are displayed with numbers: 34, 10, 12, 45.
  • Cards are flipped to the blank side.
  • Player click on the card 10 followed by 12, 34 and 45
  • Player wins.

Project setup

yarn install

Compiles and hot-reloads for development

yarn serve

Compiles and minifies for production

yarn build

Lints and fixes files

yarn lint