import java.util.Scanner; public class Player { private int handsWon; private Deck hand; public Player() { hand = new Deck(); handsWon = 0; } public void giveCard(Card c) { hand.getCards().add(c); } public int score() { return hand.getScore(); } public void printHand() { System.out.println("Your hand (score = " + hand.getScore() + ")"); hand.print(); } // return true if they want to hit // false if they want to stay public boolean hitOrStay() { printHand(); Scanner in = new Scanner(System.in); System.out.println("Press 1 for hit, 2 for stay."); int choice = in.nextInt(); return choice == 1; } }