// Dealer.java public class Dealer { private Hand hand; private int winCount; public Dealer() { hand = new Hand(); winCount = 0; } public int getWins() { return winCount; } public void clearHand() { hand = new Hand(); } public void addWin() { winCount++; } public void printHand() { System.out.println(hand); } public int getScore() { return hand.totalValue(); } public void addCard(Card c) { hand.add(c); } public boolean hit(int playerScore) { // if player busts, we stay if (playerScore > 21) { return false; } // otherwise match or beat them if (getScore() >= playerScore) { return false; } else { return true; } } }