Skip to content

Latest commit

 

History

History
26 lines (20 loc) · 1.1 KB

README.md

File metadata and controls

26 lines (20 loc) · 1.1 KB

Shuffle myCards

Challange

  • I can shuffle the deck of cards.
  • I can draw any given number of cards from the deck, with the cards being removed from the original deck.
  • I can draw any given number of cards from the deck and then sort the drawn cards, with the cards being removed from the original deck.
  • Sorted cards are sorted by suit: Clubs, Spades, Hearts, Diamonds; then by value: Ace is high.

Solution

  • Open HTML file in browser or follow this link https://maddocash.github.io/deckOfCards/
  • 'Generate Deck' - will show all card in the deck sort as above.
  • 'Show Full Deck' - will show you the full deck, this is useful for when you have have chosen a hand and want to go back to the full deck
  • 'Shuffle Deck' - shuffles the full deck.
  • 'Show Chosen Cards' - shows you the cards you have selected.
  • 'Sort Hand' - sorts your chosen hand based on the citeria above.
  • 'Empty Hand' - deletes your hand allowing you to select a new hand of cards.
  • 'pick me' - add the card to your hand.

Testing