subject

The child’s game, War, consists of two players each having a deck of cards. In the actual card game, for each play, each person turns over the top card in his or her deck. The higher card wins that round of play and the winner takes both cards. The game continues until one person has all the cards and the other has none. Create a program that simulates a modified game of War. The computer will play both hands, as PlayerOne and PlayerTwo, and, for each round will generate two random numbers and compare them. If the first number is higher, PlayerOne’s score is increased by 1 and if the second number is higher, PlayerTwo’s score is increased by 1. If there is a tie, no score is incremented. When one "player" reaches a score of 10, that player should be deemed the winner and the game ends. The range of numbers should be 1-13 to simulate the values of cards in the deck. You do not have to declare "suits"; the random number values alone determine the value of the card.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 22:30
I'll mark brainliest if answered right! with which feature or menu option of a word processing program can you make an image like this? you can get this image using the option of a word processing program.
Answers: 1
question
Computers and Technology, 23.06.2019 06:20
Which text function capitalizes the first letter in a string of text? question 10 options: upper capital first proper
Answers: 1
question
Computers and Technology, 24.06.2019 18:30
How does the use of e-mail benefit business communications? it can be sent at any time. it is faster than regular mail. it improves writing skills. it is less expensive than using a courier. it reduces the need for proofreading.
Answers: 1
question
Computers and Technology, 24.06.2019 22:00
Difference between ancient and modern mode of information transmission
Answers: 1
You know the right answer?
The child’s game, War, consists of two players each having a deck of cards. In the actual card game,...
Questions
question
Mathematics, 09.03.2021 08:10
question
Social Studies, 09.03.2021 08:10
question
Biology, 09.03.2021 08:10
question
History, 09.03.2021 08:10
question
Mathematics, 09.03.2021 08:10
question
Computers and Technology, 09.03.2021 08:10
question
Mathematics, 09.03.2021 08:10
question
Mathematics, 09.03.2021 08:10
question
Mathematics, 09.03.2021 08:10
Questions on the website: 13722362