Question: USING C++: For This project we will be building the framework for 5 card draw poker. The game will have 1 player and at least

USING C++:

For This project we will be building the framework for 5 card draw poker. The game will have 1 player and at least 1 virtual player (optionally up to 3). Players will be dealt cards from a deck to their hand. A total of 5 cards will be dealt to each player. The value of each hand will be determined by standard Poker Rules. Players will place bets based in accordance to the rules of 5 card draw. Bets will be placed into a pot. The player with the highest ranked hand will have win the pot for that round of play.

Cards can be of value 1-13 with the Ace, Jack, Queen and King being 1, 11, 12 and 13 respectively. All other card values show their value (a 2 is worth 2). There are also four possible suites. These are Clubs, Spade, Diamond and heart. The combination makes for 52 different cards.

Task 1: Create a deck of cards and shuffle them. For this task you will need to create 52 unique cards and place them in the deck (a Stack container object). They should be placed in the deck in random order.

Task 2: A player object should be created. The player should have a container named hand which can hold 5 card objects. These card objects should be dealt (passed) from the deck to the players hand. The card objects should be dynamic and passed from the deck to the hand using pointers.

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!