Question: THE DEAL The deck is divided evenly, with each player receiving 2 6 cards, dealt one at a time, face down. Anyone may deal first.
THE DEAL
The deck is divided evenly, with each player receiving cards, dealt one at a time, face down. Anyone may deal first. Each player places their stack of cards face down, in front of them.
THE PLAY
Each player turns up a card at the same time and the player with the higher card takes both cards and puts them, face down, on the bottom of his stack.
If the cards are the same rank, it is War. Each player turns up one card face down and one card face up The player with the higher cards takes both piles six cards If the turnedup cards are again the same rank, each player places another card face down and turns another card face up The player with the higher card takes all cards, and so on
After each round, the program should ask the user if they want to continue or forfeit. If they forfeit the program should print the number of cards each player has and quit.
HOW TO KEEP SCORE
The game ends when one player has won all the cards.
FILES TO TURN IN Zip before submitting to Canvas
card.h
card.cpp
deck.h
deck.cpp
war.h
war.cpp
main.cpp
Please show the code in it's respecitive file cardh card.cpp etc. Thank you!!
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
