Search for question
Question

The task is to implement a word guessing game on the model of "Hangman". The game starts with a hidden word in which

hyphens are displayed in place of letters. The player guesses a letter, and if the letter is in the word, the word display is

updated to reveal the letter in place. If the word does not contain the letter guessed, the player gets one "strike".

NOTE: you do not need to implement the drawing of the hanged man, as in the children's game.

If the player gets five strikes before all letters are revealed, the player loses. If the player is able to guess all letters before

getting five strikes, the player wins.