Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I need help writing a rock, paoer, scissors game in java. The program should repeat for three games. The program will ask for the players

I need help writing a rock, paoer, scissors game in java. The program should repeat for three games. The program will ask for the players choice of rock, paper, or scissors. The program should then translate the players choice (using rule syntax switch). Next the program should randomly generate the computers play. Then the program will translate the computers choice (using rule syntax switch). Th program will determine the winner of the round and adjust the score. Display the round results. End the repeat. Display the results for the three rounds. The outputs should display as follows: rock crushes scissors-whoever has rock wins; scissors cut paper - whoever has scissors wins; paper wraps rock- whoever has paper wins. Eachround should display waht each side played, what the versict is, and who won the round. Images to be used are RPS.png, RPS2.png, paperWrapRock.png, rockCrushScissor.png, and scissorCutPaper.png. The programmers is required in the title of each dialog box. When reporting each play the description such as "Paper wraps Rock" should be in larger bold font.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Time Series Databases New Ways To Store And Access Data

Authors: Ted Dunning, Ellen Friedman

1st Edition

1491914726, 978-1491914724

More Books

Students also viewed these Databases questions

Question

What does Processing of an OLAP Cube accomplish?

Answered: 1 week ago