Package cs171a2

Class Dealer

java.lang.Object
cs171a2.Dealer

public class Dealer extends Object
This class represents a dealer who shuffles a deck of cards and distributes them to players.
  • Constructor Details

    • Dealer

      public Dealer(CardPlayer[] players, Deck deck)
      Creates a new Dealer object with the specified players and deck.
      Parameters:
      players - the array of CardPlayer objects to distribute the cards to
      deck - the Deck object to shuffle and distribute
  • Method Details

    • showDeck

      public void showDeck()
      Prints out the identifier of each card in the deck.