Question: 3. Create a rock, paper, scissors game using a Python function. (Just a reminder: Rock smashes scissors; scissors cut paper; paper covers rock.) The Python

 3. Create a rock, paper, scissors game using a Python function.

3. Create a rock, paper, scissors game using a Python function. (Just a reminder: Rock smashes scissors; scissors cut paper; paper covers rock.) The Python function is to be called "RPSGame .py" with no inputs and three outputs. The outputs are in order the number of wins, draws and losses. The function will randomly select from a list of the "weapons". There are several ways to do this. One way is to use the random number generator (from the number guess game) and link it by index to a list of weapons. The computer's "pick" should obviously not be printed. A user will then be prompted to enter their weapon choice or"q" to quit. a. b. c. Print the statement "rock, paper, scissors, GO!" or some other clever way to let the user d. Use if and print statements to declare the winner based on the choices by the computer e. The game should automatically continue until someone (either the computer or the user) know the game has begun and user. If both the computer and the user pick the same weapon, a tie should be called wins three times. Thus, counters are necessary

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!