Skip to content

maddocash/deckOfCards

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published