Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a program called RockPaperScissors(). Here is a list of requirements: 1) The game will ask the player how many games will it take to

Write a program called RockPaperScissors(). Here is a list of requirements:

1) The game will ask the player how many games will it take to win?

2) The game will play until the player enters "quit" or the player-chosen-number is reached.

3) Write a user-friendly interface that prompts the user for their choice of (R)ock, (P)aper, or (S)cissors.

4) For your first iteration, use the random number generator to make the computer's choice of R, P, or S. The computer's choice must be made before the players choice.

5) Report the winner after each turn, the current win total and anything else that you think would enhance the quality of the game.

6) Optional Modification #1: Once you have a fully-functioning RPS game, modify your program to outguess the player (without cheating) so that the computer wins more often than the player.

7) Optional Modification #2: Write a two-player version of RPS.

use java

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_2

Step: 3

blur-text-image_3

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

Secrets Of Analytical Leaders Insights From Information Insiders

Authors: Wayne Eckerson

1st Edition

1935504347, 9781935504344

More Books

Students also viewed these Databases questions