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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started