Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please write a python program for paper, rock and scissor game. 1) the program will play the game between computer and user 2) computer will

Please write a python program for paper, rock and scissor game.

1) the program will play the game between computer and user

2) computer will randomly generate the action (use 1, 2, 3 to represent different actions)

3) program ask user to input the action

4) program report who win the game based on the rule

Example Output

Please enter your action (1: rock, 2: paper, 3: scissor): 1 You choose ROCK Computer choose ROCK It is a tie!
Please enter your action (1: rock, 2: paper, 3: scissor): 3 You choose SCISSOR Computer choose PAPPER You win!

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

Professional IPhone And IPad Database Application Programming

Authors: Patrick Alessi

1st Edition

0470636173, 978-0470636176

More Books

Students also viewed these Databases questions

Question

1. Summarize the application of a chi-square test.

Answered: 1 week ago