The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | May 2017 |
| Last Sign in: | 398 Weeks Ago, 1 Day Ago |
| Questions Answered: | 66690 |
| Tutorials Posted: | 66688 |
MCS,PHD
Argosy University/ Phoniex University/
Nov-2005 - Oct-2011
Professor
Phoniex University
Oct-2001 - Nov-2016
Implement a modified version of the card game WAR. In this game there will be two players, and each player will be dealt 26 cards. The players do not get to choose which card they will play. Instead, the top card from each of the Hands is played, so a total of two cards are played. The card with the higher value wins, giving the player who played it a point. After 26 rounds the game is over and a winner should be declared based on points.
In the event of a tie between cards. For example 5 of clubs vs. 5 of hearts, the tie will be broken as follows:
diamonds (lowest value), followed by clubs, hearts, and spades (highest value)
So in this case, the 5 of hearts beats the 5 of club
Hel-----------lo -----------Sir-----------/Ma-----------dam-----------Tha-----------nk -----------You----------- fo-----------r u-----------sin-----------g o-----------ur -----------web-----------sit-----------e a-----------nd -----------and----------- ac-----------qui-----------sit-----------ion----------- of----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n.P-----------lea-----------se -----------pin-----------g m-----------e o-----------n c-----------hat----------- I -----------am -----------onl-----------ine----------- or----------- in-----------box----------- me----------- a -----------mes-----------sag-----------e I----------- wi-----------ll