Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

l Implement a C++ program to design and play the game of Three Card War. The card game Three Card War is a simple card

l Implement a C++ program to design and play the game of Three Card War.

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

shufed 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 frst.

The player going frst selects one of his three cards and places it face up.

The opposing player selects one of her three cards and places it face 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 frst playing drawing frst.

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 frst 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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Upgrading Oracle Databases Oracle Database New Features

Authors: Charles Kim, Gary Gordhamer, Sean Scott

1st Edition

B0BL12WFP6, 979-8359657501

More Books

Students also viewed these Databases questions

Question

What are the main objectives of Inventory ?

Answered: 1 week ago

Question

Explain the various inventory management techniques in detail.

Answered: 1 week ago

Question

4. Who would lead the group?

Answered: 1 week ago

Question

2. What type of team would you recommend?

Answered: 1 week ago