You created a Secret Phrase game similar to Hangman, in which the user guesses letters in a

Question:

You created a Secret Phrase game similar to Hangman, in which the user guesses letters in a partially hidden phrase in an attempt to determine the complete phrase. Modify the program so that: 

  • The phrase to be guessed is selected randomly from a list of at least 10 phrases.
  • The clue is presented to the user with asterisks replacing letters to be guessed but with spaces in the appropriate locations. For example, if the phrase to be guessed is No man is an island, then the user sees the following as a first clue: ** *** ** ** ******. The spaces provide valuable information as to where individual words start and end.
  • Make sure that when a user makes a correct guess, all the matching letters are filled in, regardless of case. Save the game as SecretPhrase2.java.
Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question

Java Programming

ISBN: 978-1337397070

9th edition

Authors: Joyce Farrell

Question Posted: