Package model

Class Dealer


public class Dealer extends Person
Represents a dealer in a card game and handles dealer-specific operations.

This class extends the Person class, which contains shared methods and properties between players and dealers.

Author:
Michael Neuper michael@michaelneuper.com
See Also:
  • Constructor Details

    • Dealer

      public Dealer()
      Constructs a new Dealer with the default name "Dealer".
  • Method Details

    • printFirstHand

      public String printFirstHand()
      Returns a String representation of the dealer's first Card in their Hand.
      Returns:
      the first card in the dealer's Hand as a String
    • printFirstCardValue

      public String printFirstCardValue()
      Returns a String representation of the value of the dealer's first Card in their Hand.
      Returns:
      the value of the first Card in the dealer's Hand as a String