Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

python Chifoumi, Stone, Paper, Scissors, Lizard, Spock We want to make a program that allows you to play rock, paper, scissors (Each player chooses one

image text in transcribedpython
Chifoumi, Stone, Paper, Scissors, Lizard, Spock We want to make a program that allows you to play rock, paper, scissors (Each player chooses one of the three, and wins if he chooses the one who beats the choice of the other. Scissors> Paper> Stone> Scissors) Write an algorithm that chooses a number at random between 1 and 3 and associates the corresponding sign. (Scissors 1. Paper 2, Stone 3) Now ask the user to enter a number and do the same Show machine choice, user choice and say who won. Repeat the game until one of the players (human or machine) reaches a score 3, and display the winner. A variation of the game is to add 2 other symbols, Lizard and Spock. The paytable then becomes: Pierre bat: Scissors and Lizard Paper bat: Pierre and Spock Scissors bat: Paper and Lizard Lizard bat: Paper and Spock Spock beats: Stone and Scissors Modify your previous program to allow this variation to be played. There are many other variations. As long as there are 2n + I possibilities, we can place them on a circle, say that for each value it beats the next n and loses against the previous n, and the game remains balanced

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_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

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

Get Started

Recommended Textbook for

Inference Control In Statistical Databases From Theory To Practice Lncs 2316

Authors: Josep Domingo-Ferrer

2002nd Edition

3540436146, 978-3540436140

More Books

Students also viewed these Databases questions

Question

Explain the need for and importance of co-ordination?

Answered: 1 week ago

Question

Explain the contribution of Peter F. Drucker to Management .

Answered: 1 week ago

Question

What is meant by organisational theory ?

Answered: 1 week ago

Question

What is meant by decentralisation of authority ?

Answered: 1 week ago

Question

Analyse the various techniques of training and learning.

Answered: 1 week ago