[SOLVED] SOLVED:Game: Rock, Scissors, Paper

20.00 $

Programming resource
Digital learning resource
Category:
Practical programming resource
Suitable for guided study and reference
Tutor guidance available when needed

Description

5/5 - (3 votes)

Write a program that plays the popular scissor-rock-paper
game. The program randomly generates a number 0, 1, or 2 representingscissor,rock, and paper. The program prompts the user to enter anumber 0, 1,or 2 and displays a message indicating whether the user orthe computer wins or draws. Note that a scissor can cut a paper, a rockcan knock a scissor, and a paper can wrap a rock.

Resource details

Understand the Task Before You Use the Resource

Review the requirements, identify the programming concepts involved, study the implementation and test your understanding with your own examples and modifications.