Question: Write a program in cpp that pits the human user against the computer in a game of Rock, Paper, Scissors as in the output below.

Write a program in cpp that pits the human user against the computer in a game of "Rock, Paper, Scissors" as in the output below.
Computer and user each choose one: R for Rock, P for Paper, S for Scissor.
Each round, your program declares one the winner (ask user to enter his/her name; give the computer a name)
At end of game, winner is the one with the most wins.
Decisions to make:
How do you know when the game ends?
How to randomize computer's choice - R, P, S?

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 Programming Questions!