Create a Java codeed game called "Rock Paper Scissors," two players simultaneously choose one of three options: rock, paper, or scissors. If both chose the same option, then the result is a tie. However, if they choose differently, the winner is determined as follows: -Rock beats scissors, because a rock can break a pair of scissors. -Scissors beat paper, because scissors can cut the paper. -Paper beats rock, because a piece of paper can cover a rock. Create a game in which the computer randomly chooses rock, paper, or scissors. Assign the number 1, 2, or 3 to represent one of the three choices. Let the user enter a number. Then determine the winner by comparing the user input and the randomly generated choice of the computer. Additional instructions: 1. The Program should validate all user input. 2. Game should ask the user to play again and continue if yes and stop if no. 3. Once the user stops playing, program should print the total number of wins. 4. Once complete, save as RockPaperScissors and upload your java file.
Create a Java codeed game called "Rock Paper Scissors," two players simultaneously choose
one of three options: rock, paper, or scissors. If both chose the same option, then the result is a tie. However, if they choose differently, the winner is determined as follows:
-Rock beats scissors, because a rock can break a pair of scissors.
-Scissors beat paper, because scissors can cut the paper.
-Paper beats rock, because a piece of paper can cover a rock.
Create a game in which the computer randomly chooses rock, paper, or
scissors. Assign the number 1, 2, or 3 to represent one of the three
choices. Let the user enter a number. Then determine the winner by
comparing the user input and the randomly generated choice of the
computer.
Additional instructions:
1. The Program should validate all user input.
2. Game should ask the user to play again and continue if yes and
stop if no.
3. Once the user stops playing, program should print the total number
of wins.
4. Once complete, save as RockPaperScissors and upload your java
file.
Step by step
Solved in 4 steps with 6 images