Write a program that plays the rock-paper-scissors game


Question: Write a program that plays the Rock-Paper-Scissors game against the computer. When played between two people, each person picks one of three options (usually shown by a hand gesture) at the same time, and a winner is determined. In the game, Rock beats Scissors, Scissors beats Paper, and Paper beats Rock. The program should randomly choose one of the three options (without revealing it), then prompt for the user's selection. At that point, the program reveals both choices and prints a statement indicating if the user won, the computer won, or if it was a tie. Continue playing until the user chooses to stop, then print the number of user wins, losses, and ties.

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Write a program that plays the rock-paper-scissors game
Reference No:- TGS02318625

Expected delivery within 24 Hours