Package cs171a2
Class Dealer
java.lang.Object
cs171a2.Dealer
This class represents a dealer who shuffles a deck of cards and
distributes them to players.
-
Constructor Summary
ConstructorsConstructorDescriptionDealer
(CardPlayer[] players, Deck deck) Creates a new Dealer object with the specified players and deck. -
Method Summary
Modifier and TypeMethodDescriptionvoid
showDeck()
Prints out the identifier of each card in the deck.
-
Constructor Details
-
Dealer
Creates a new Dealer object with the specified players and deck.- Parameters:
players
- the array of CardPlayer objects to distribute the cards todeck
- the Deck object to shuffle and distribute
-
-
Method Details
-
showDeck
public void showDeck()Prints out the identifier of each card in the deck.
-