Question: C++ Probelm Use your Poker classes to write a program that deals two five-card poker hands, evaluates each hand and determines which is the better

C++ Probelm

Use your Poker classes to write a program that deals two five-card poker hands, evaluates each hand and determines which is the better hand. Modify this program so that it can simulate the dealer. The dealers five-card hand is dealt face down so the player can not see it. The program should then evaluate the dealers 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 program should then reevaluate the dealers hand. Modify this program you so that it handles the dealers hand, but the player is allowed to decide which cards of the players hand to replace. The program should then evaluate both hands and determine who wins. Now use this new program to play 5 games against the computer. Keep track of who wins more games, you or the computer. Provide a somewhat attractive (you don't have to go overboard) text based user interface to allow the user to play poker against the dealer and reports what the final results were of the 5 poker games.

Turn in all the .cpp and .h files for your PokerHand, Deck and Card classes along with a PokerGame.cpp file that has your main and any associated helper functions.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!