Create a game in which a player guesses letters to try to replicate a hidden word. Create a
two-dimensional array that contains five eight-letter words and randomly select one to be
the hidden word. Initially, display the hidden word using asterisks to replace each letter.
Allow the user to guess letters to replace the asterisks in the hidden word until the user
completes the entire word. If the user guesses a letter not in the hidden word, display an
appropriate message. If the user guesses a letter that appears multiple times in the hidden
word, make sure each correct instance is replaced. When the user completes the word,
display a count of the number of guesses that were required. Allow the users to continue
to play as many games as they want.
It looks like you're new here. If you want to get involved, click one of these buttons!