Use object-oriented programming to develop a game application that plays the children’s game of rock, paper, scissors. The user enters a letter, indicating his or her choice. When a choice is entered, the rand function from is used to pick a value in the range of 1 through 3, with 1 corresponding to rock, 2 corresponding to paper, and 3 corresponding to scissors. The computer’s choice is compared to the user’s choice according to these rules: rock breaks scissors, scissors cut paper, paper covers rock. Choices that match are considered ties. Output a count of the wins by the user and the computer, and of the ties. The application ends when the user enters an invalid choice.
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.