//************************************************************ // // BlackJack.Java Original Authors: Lewis, Chase, and Coleman // // The BlackJack class provides an implementation of a single // deck blackjack game. It makes use of the Hand class to // represent a player's hand and the Deck class to represent // the deck of cards for the game. // //************************************************************* import java.util.*; public class Blackjack { private Hand dealer; //to hold the dealer's cards private Hand player; //to hold the player's cards private Deck newdeck; //a set of cards // Initialize the BlackJack class // dlr gets assigned to dealer // plr gets assigned to player // Construct a new Deck and assign to newdeck public Blackjack(Hand dlr, Hand plr) { }//Blackjack constructor /*********************************************************** deal method - deals the intitial cards. Two to each player ***********************************************************/ public void dealInitialCards() { }//end deal method /*********************************************************** hit method - adds the next card from the deck to the given player's hand Return the Card that was added ***********************************************************/ public Card hit(Hand whohit) { }//end hit method /*********************************************************** handValue method - returns the value of the given player's hand ***********************************************************/ public int handValue(Hand whohand) { }// end handValue method /*********************************************************** blackj method - tests to see if the player's hand has a value of 21 ***********************************************************/ public boolean blackj() { }//end blackj /*********************************************************** bust method - tests a given player's hand to see if they have gone over 21 ***********************************************************/ public boolean bust(Hand whobust) { }//end bust /*********************************************************** dealerPlays method - adds cards to the dealer's hand until the value is >= 16 ***********************************************************/ public Hand dealerPlays() { }//end dealerPlays /*********************************************************** winner method - determines the winner of the game Return the String "Lose" if player's hand is less than the dealer's hand and the dealer's hand is less than or equal to 21 Return the String "Push" if the player's hand is equal to the dealer's hand and the dealer's hand is less than or equal to 21 Otherwise return the String "Win" ***********************************************************/ public String winner() { }//end winner }//end Blackjack