Hangman Game
Due Dec 6th
Download the following data file. It contains
10 words.
Open up the data file and read in all the words. Randomly select one of
the words for the game. Displays _'s for the letters.
For example if the word is CAT display _ _ _
- Display the entire alphabet for the user to select a letter of
the word.
- Allow the user to select a letter. If the letter is in the word,
change
the _'s to the letter.
- Remove that letter from the list of letters in the alphabet,
display a
space for that missing letter.
- After each turn check to see if the word has been completed. If
the
word has been completed, then give a congratulations message and ask
them if they would like to play again. If they play again, select a new
word.
- If the word has not been completed, ask them to chose a new
letter.
- If after 10 tries they have not gotten the word, indicate that
they
game is over and display the word. Ask them if they want to play again.
Use functions to:
- Start the game (and then branch off to the rest of the program)
- Display the alphabet
- Display the word
- Select a letter
- Select the random word