Deck of Cards App
$ yarn install
$ yarn start
$ yarn test
- Given there are cards in the deck.
- When the user clicks "Shuffle".
- Then the deck should be randomly shuffled.
- Given there are cards in the deck.
- When the user click "Draw".
- Then a specified a number of cards should be moved from the deck into the users hand.
- Given there are cards hand.
- When the user clicks "Sort".
- Then the hand should be sorted by:
- Suit in order: Clubs, Spades, Hearts, Diamonds.
- Value low to high (Aces are high).
- Given the user has shuffled and drawn cards and clicked "save".
- When the user refreshes the page.
- Then the user can resume from my previous state.
- Given the user has saved a game state.
- When the user clicks "reset",
- Then the game resets with all the cards moved to the deck.
- React
- Styled Components
- Jest
- React Testing Library