Package Files
Class Deck
java.lang.Object
Files.Deck
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDraws a random card, removes it from the deck, returns it
-
Constructor Details
-
Deck
public Deck()Creates deck object with 14 of each type of card and 2 jokers
-
-
Method Details
-
drawRandom
Draws a random card, removes it from the deck, returns it- Returns:
- Card card that is drawn from the deck
-