Question: 1/Problem #46: Rock, Paper, Scissors pt. 2 char options [] = { 'R', 'P', 'S' }; Random random = new Random(); 1/scan for users input
1/Problem #46: Rock, Paper, Scissors pt. 2 char options [] = { 'R', 'P', 'S' }; Random random = new Random(); 1/scan for users input of R, P, S Scanner fourb - new Scanner(System.in); int userwin - @, compwin =; 1/use while loop until either user or computer wins 3 times while ((userwin userwin) System.out.println("Computer won the game."); else System.out.println("You won the game!")
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
