Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Complete this question without the use of functions please. But still include notes explaining the programming. Language is Python 3.6 Simulate a game of Rock,

Complete this question without the use of functions please. But still include notes explaining the programming. Language is Python 3.6

image text in transcribed

Simulate a game of "Rock, Paper, Scissors". If you are unfamiliar with the game, there is a good description on Wikipedia. In general, both players randomly choose a signal from rock", "paper" and "scissors". Rock beats scissors, scissors beats paper, paper beats rock. If both players choose the same signal, it is a push", and neither player wins Create an array, where each element of the array is a string, one for each signal. Use random choice to randomly choose an element from the list of signals. Create a simulation that runs 100 rounds of Rock, Paper, Scissors" between two players named "Right" and "Left". Track how many times the right wins, how many times left wins, and how many pushes there are Using the seed 42, your result should be: Trials: 100, Left win %: 40.0, Right win %: 36.0, Push %: 24.0 How do the results change if left only ever uses rock? Optional: Make sure that right player uses the same signals as the previous trials Simulate a game of "Rock, Paper, Scissors". If you are unfamiliar with the game, there is a good description on Wikipedia. In general, both players randomly choose a signal from rock", "paper" and "scissors". Rock beats scissors, scissors beats paper, paper beats rock. If both players choose the same signal, it is a push", and neither player wins Create an array, where each element of the array is a string, one for each signal. Use random choice to randomly choose an element from the list of signals. Create a simulation that runs 100 rounds of Rock, Paper, Scissors" between two players named "Right" and "Left". Track how many times the right wins, how many times left wins, and how many pushes there are Using the seed 42, your result should be: Trials: 100, Left win %: 40.0, Right win %: 36.0, Push %: 24.0 How do the results change if left only ever uses rock? Optional: Make sure that right player uses the same signals as the previous trials

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

How can you defend against SQL injection attacks?

Answered: 1 week ago

Question

How will the members be held accountable?

Answered: 1 week ago

Question

a. Do team members trust each other?

Answered: 1 week ago