- Construct a class for a
Deck
of cards, which has an attributecards
consisting of an array of 52Card
objects. - A
Card
consists of arank
("A", "2", "3", "4", "5", "6", "7", "8", "9", "10", "J", "Q", "K") paired with asuit
("Hearts", "Clubs", "Diamonds", "Spades") - Your
Deck
should have a method#choose_card
which selects a random card from the deck and removes it.
williamsalex / deck-of-cards-nyc-web-111819 Goto Github PK
View Code? Open in Web Editor NEWThis project forked from learn-co-students/deck-of-cards-nyc-web-111819