Question: Modify the application developed in Exercise 7.17 so that it can simulate the dealer. The dealers five-card hand is dealt face down, so the player
Modify the application developed in Exercise 7.17 so that it can simulate the dealer. The dealer’s five-card hand is dealt “face down,” so the player cannot see it. The application should then evaluate the dealer’s hand, and, based on the quality of the hand, the dealer should draw one, two or three more cards to replace the corresponding number of unneeded cards in the original hand. The application should then reevaluate the dealer’s hand.
Exercise 7.17
Use the methods developed to write an application that deals two five-card poker hands, evaluates each hand and determines which is better.
Step by Step Solution
3.30 Rating (153 Votes )
There are 3 Steps involved in it
well need to add logic to handle the dealers hand including dealing the initial hand face down evaluating it and then drawing one two or three additio... View full answer
Get step-by-step solutions from verified subject matter experts
