![subject](/tpl/images/cats/informatica.png)
Computers and Technology, 11.03.2021 14:00 IanMH
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.
![ansver](/tpl/images/cats/User.png)
Answers: 1
![](/tpl/images/ask_question.png)
![](/tpl/images/ask_question_mob.png)
Another question on Computers and Technology
![question](/tpl/images/cats/informatica.png)
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 24.06.2019 07:30
Aproject involves many computing systems working together on disjointed task towards a single goal what form of computing would the project be using
Answers: 3
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 25.06.2019 14:40
Which of the following is the definition of role-based access control ( rbac)? (a) ensures that data has not been accidentally or intentionally modified without authorization. (b) access control system where rights are assigned based on a user’s role rather than his or her identity. (c) ensures that private or sensitive information is not disclosed to unauthorized individuals. (d)the principle in which a subject—whether a user, an application, or another entity—should be given the minimum level of rights necessary to perform legitimate functions.
Answers: 2
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 26.06.2019 01:30
When doing career research online, you always want to make sure you are viewing a reliable source, what factors about the website do you want to consider?
Answers: 1
You know the right answer?
The child’s game, War, consists of two players each having a deck of cards. For each play, each pers...
Questions
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/obshestvoznanie.png)
Social Studies, 30.07.2019 22:00
![question](/tpl/images/cats/health.png)
Health, 30.07.2019 22:00
![question](/tpl/images/cats/en.png)
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/obshestvoznanie.png)
![question](/tpl/images/cats/mat.png)
Mathematics, 30.07.2019 22:00
![question](/tpl/images/cats/istoriya.png)
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/health.png)
![question](/tpl/images/cats/health.png)
![question](/tpl/images/cats/istoriya.png)
History, 30.07.2019 22:00
![question](/tpl/images/cats/mat.png)
Mathematics, 30.07.2019 22:00
![question](/tpl/images/cats/obshestvoznanie.png)
Social Studies, 30.07.2019 22:00
![question](/tpl/images/cats/health.png)
Health, 30.07.2019 22:00
![question](/tpl/images/cats/biologiya.png)
![question](/tpl/images/cats/biologiya.png)
![question](/tpl/images/cats/health.png)
![question](/tpl/images/cats/istoriya.png)
History, 30.07.2019 22:00