Hangman Requirements

posted Jun 12, 2019, 2:39 PM by Nikhil Joshi   [ updated Jun 13, 2019, 7:22 AM ]
To earn extra credit your hangman game must meet the following requirements.

  1. be an individual project.
  2. have a non-player enter the secret word of no more than 8 letters.
  3. display underlines for each letter in the word. For example "_ _ _ _ _ _ _ _"
  4. fill in the correct letters in the correct locations after every guess. For example "_ _ e _ t _ _"
  5. Accept/match both uppercase ("A") and lowercase ("a") letters. That is, the games should be "case insensitive".
  6. progressively draw an ASCII art hangman after every wrong guess. See the example below.
  7. Congratulate the winner if they guess the word before the complete hangman.
  8. Display the secret word if they lose.
  9. turned in before 11:59 on Friday the 21st.
The hangman should build in the following sequence.

   O            O            O            O            O            O            O
                          -+           -+-          -+-          -+-          -+-
                                                       |            |            |
                                                                   /            / \


You're welcome to make the ASCII art fancier, but there should be no more than 7 wrong guesses to lose the game.


Comments