Question: Write a Java program that plays the scissor-rock-paper game between a user and the computer. The program allows user to continuously play until either user

Write a Java program that plays the scissor-rock-paper game between a user and the computer. The program allows user to continuously play until either user or computer has 3 more wins than losses.

Here is my lucky sample run:scissor (0), rock (1), paper (2): 0 You won scissor (0), rock (1), paper (2): 2 You won scissor (0), rock (1), paper (2): 1 You won *** You won this match.

Specific requirements:

1.You may not program the computer to cheat. Instead, you should use random() for computer to make a selection of 0, 1, or 2.

2.The output of your program should looks similar to the sample run above.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!