In this game of memory, attempt to click all 12 cards without ever clicking the same one again.
- Start by clicking on any card.
- Clicking on the same card twice will reset the game. Aim for a high score of 12.
Stateful component
- counter - Maintains current score, reset to 0 if player loses the game.
- highScore - Maintains highest score achieved by user
- statusText - Contains current game status
- card - Contains all card information
- id
- brand
- clicked
Contains logic to handle click event on cards
- Displays all 12 cards created from prop array
- Responsible for shuffling cards
- Assigns click handler to cards
- Displays current score, high score and status text from props.
- Static footer
- Static header
David Pham - email@davidpham.ca