Answered step by step
Verified Expert Solution
Question
1 Approved Answer
I need help writing a rock paper scissors game in java using the arrow syntax switch. The program should use the JOptionPane class. The program
I need help writing a rock paper scissors game in java using the arrow syntax switch. The program should use the JOptionPane class. The program should use RPSpng RPSpng paperWrapsRock.png rockCrushScissor.png and scissorCutPaper.png The dialog box should have buttons with one saying Rock, one saying Paper, and one saying Scissors. It should say click a button corresponding to your play. They player will click a button. A dialog box will display what the player selected. Next the program will generate a choice for the computer. Once the computer choice is genersted the program should translate the computers choice. Next the program should display a dialog box with the results. Example is "You chose scissors. The computer chose paper. Scissors cut paper. You win!" There should be options. Paper wraps rock when the player wins or computer wins; rock crushes scissors when the player wins or computer wins; scissors cut paper when the player wins or computer wins; The final dialog box should display the final score of the game by saying Wins: Loses: Tie: The gane should have a loop to repeat the game for rounds before terminating the game.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started