Question: Implement a C++ program to design and play the game of Three Card War. Implement what you think are the necessary .h files to develop

Implement a C++ program to design and play the game of Three Card War. Implement what you think are the necessary .h files to develop the game. Do not implement the .cpp portion of the game. This assignment is to just implement the .h files. The .h files you submit may not be used to implement the game. The card game Three Card War is a simple card game for two players. The game uses a 52 card conventional deck. To begin the deck is shuffled and each player draws three cards. The players may look at their three cards. The remaining cards are placed in a pile facedown between the two players. The players decide who is going first.

The player going first selects one of his three cards and places it faces up. The opposing player selects one of her three cards and places it faces up. If the ranks of both cards are the same (a push), then both players retain their cards and set them aside. Otherwise, the player with the highest-ranking card keeps both cards (again, setting them aside) After playing the round, each player draws one card from the deck to replace the card just played with the first playing drawing first. The player that won the round is now the first player for the next round unless there was a push then the original first player goes first again. The game ends when the deck is exhausted and both players have played all of their three cards. The player with the most cards set aside wins. Card ranking begins with the 2 as the lowest card going up to the ten, then jack, queen, king, and ace.

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!