Question: Please finish the program in Java Language Your game should have a list of at least ten phrases of your choosing (appropriate to all audiences

Please finish the program in Java Language

Your game should have a list of at least ten phrases of your choosing (appropriate to all audiences please!) The game chooses a random phrase from the list. This is the phrase the player tries to guess. (10)

The phrase is hidden-- all letters are replaced with asterisks. Spaces and punctuation are left unhidden. So if the phrase is "Joe Programmer", the initial partially hidden phrase is: *** ********** (15)

The user guesses a letter. All occurrences of the letter in the phrase are replaced in the partially hidden phrase. For our example, if the user guessed "o", the new partially hidden phrase would change to: * o * ** o******* 15

Allow the phrases and guesses to include lowercase and uppercase letters and digits. If a guess is not a letter or digit (e.g., %) the user should be notified but not penalized a miss. 10

If the guessed letter does not occur in the phrase, the user is notified of the miss and how many misses/chances are left. 10

The user should NOT be penalized for guessing a previously correct or incorrect guess, but should be notified. 10

If the user misses 8 times, they lose and the game is over. If all letters in the phrase are guessed, the user wins! 10

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!