I found it on the internet, but it's not quite right. It's not too hard someone bust this out for me! Paying nicely
Rock-Paper-Scissors:
● You are to implement a program, called RPS_Game, that will allow the user to play three games of Rock-Paper-Scissors with the computer. You will need toincorporate three methods (in addition to the main method) with the following functionality:
a. greeting() - a void, no argument method that explains the purpose of the program.
b. generateComputersChoice() - a no argument method that returns the computer’s choice. You should use a random number generator in this method. You may use whatever data type you choose for the method return. Make sure the prompt reflects your choice and that it is the same data type as the method described below.
c. enterPlayersChoice(int gameNumber) - a method that takes the game number as an argument and returns the player’s choice. You may use whatever data type you choose for the return type. Make sure the prompt reflects your choice and that it is the same data type as was generated by the generateComputersChoice method. The text for the input for the user should have the game number, as shown below
d.
● Remember, each of the above methods are public and static methods. For each game (loop), you should display the results of that game along with the game number as shown below. This should include:
a. Game number
b. Who played what: You and computer
c. The scenario:
i. Rock crushes scissors
ii. Paper wraps rock
iii. Scissors cuts paper
d. Who wins: you or computer
e.
● When all three games have been played, you should display a summary of the three games. The image below is an example of a summary. This should include
a. The number of games played
b. The number of ties
c. The number of games you won
d. The number of games the computer won
e.
● Extra credit: have the cycle of three games repeated with the accumulated wins tally shown at the end of each group of three games
a. This would mean that your total games would have to change in the above output example.
● You may use JOptionPane instead of printing the output in the console, but if you choose to do this, you have to put everything in JOptionPane, including the greeting and the user prompts. It is poor programming style to use both JOptionPane and the console.
a. On user prompt, make sure you tell your user what to enter as well as give them an example and if appropriate, a range.
This post was edited by Cold1992 on Nov 9 2016 02:51pm