subject
Computers and Technology, 16.10.2020 14:01 tonta22

Write a simulation program called war. py that plays 10000 games of War between two players, each with regular 52 card decks. Record in a list the number of games that are tied (i. e. each player has 52 cards at the end of the game), the number where one player wins by 2 (i. e. one player has 51 cards and the other 53 cards at the end), by 4, by 6, etc. (noting that the card differential is always a multiple of 2), and print out there results at the end of the simulation. Specifically, print out to the screen a series of number pairs, the first is the difference in the number of cards, following by the fraction of times that occurs, e. g. 0 0.11 2 0.20 4 0.19 6 0.15

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 11:00
When working with a team you should always do the following, except? question 3 options: be dependable and trustworthy be sensitive to others feelings do your fair share critique members of the group
Answers: 2
question
Computers and Technology, 23.06.2019 06:40
How many nibbles can be stored in a 16-bit word?
Answers: 1
question
Computers and Technology, 24.06.2019 00:30
Use the keyword strategy to remember the meaning of the following word. the meaning for the word has been provided. write your keyword and describe the picture you would create in your mind. obfuscate: to make something so confusing that it is difficult to understand.
Answers: 2
question
Computers and Technology, 25.06.2019 00:00
Into which of these files would you paste copied information to create an integrated document? a. mailing list b. destination c. source d. data source
Answers: 1
You know the right answer?
Write a simulation program called war. py that plays 10000 games of War between two players, each wi...
Questions
question
Spanish, 02.08.2019 13:30
question
Mathematics, 02.08.2019 13:30