Computers and Technology
Computers and Technology, 18.03.2021 01:40, mya1318

The child’s game, War, consists of two players each having a deck of cards. 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.

answer
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 02:30, reyne36
Rafael needs to add a title row to a table that he has inserted in word. what should he do? use the alignment options. use the merge and center option for all the cells in the top row. use the merge and center option on the first two cells in the top row. none of the above
Answers: 3
image
Computers and Technology, 23.06.2019 17:20, Morehollie9428
What is the best assassins creed game?
Answers: 2
image
Computers and Technology, 23.06.2019 22:00, elijah1090
Technician a says engine assemblies can be mounted longitudinally in a chassis. technician b says engine assemblies can be mounted transversely in a chassis. who is correct?
Answers: 2
image
Computers and Technology, 24.06.2019 16:30, officialrogerfp3gf2s
Pressing the backspace key deletes the text to the of the insertion point. the left or the right?
Answers: 1
Do you know the correct answer?
The child’s game, War, consists of two players each having a deck of cards. For each play, each pers...

Questions in other subjects:

Konu
Biology, 15.12.2020 01:00
Konu
Biology, 15.12.2020 01:00
Konu
Health, 15.12.2020 01:00