Question: C + + please. Build a class called * ThreeCardHand * that is derived from class * Hand * ( Included with the starter code
C please.
Build a class called ThreeCardHand that is derived from class HandIncluded with the starter code for this project Your derived class should include support for comparing two objects of this class to determine which hand "wins" according to the rules of the game.
This game is played between two or more players just two is sufficient for this exercise Each player is dealt three cards to make up their hand. The winner is determined according to the highest card in each player's hand. For scoring purposes, follow common acehigh card ordering ie ace is highest, then king, queen, jack, then ten through two
A template testing program is provided in maincpp This program should simulate multiple games between two players. With each game a new Deck object is created and shuffled. Modify the main function to declare two ThreeCardHand objects, deal three cards to each, display both use the str method and determine which wins.
Do not modify cardsh or cardscpp You should modify the main function in maincpp to complete the test program. You may choose to implement your derived class in maincpp or its own header and implementation file pair.
Example Output
Player : JHDS
Player : ACJCS
Player wins.
Play again? yn:
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
