Create a Rock Paper Scissors game in which the user enters a string rock, paper, or scissors.

Question:

Create a Rock Paper Scissors game in which the user enters a string rock, paper, or scissors. Allow the choice to be valid whether the player enters a choice in uppercase letters, lowercase letters, or a combination of the two. To allow for player misspellings, accept the player’s entry as long as the first two letters are correct. (In other words, if a player types scixxrs, you will accept it as scissors because at least the first two letters are correct.) 

When the player does not type at least the first two letters of the choice correctly, reprompt the player and continue to do so until the player’s entry contains at least the first two letters of one of the options. 

Allow 10 complete rounds of the game. At the end, display counts of the number of times the player won, the number of times the computer won, and the number of tie games. Save the file as RockPaperScissors2.java.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  answer-question

Java Programming

ISBN: 9780357673423

10th Edition

Authors: Joyce Farrell

Question Posted: