Problems - Hangman Loops

  • Modify hangman.py to solve the problem as stated in [TODO ref to content's problem description].
  • Use the short_words.txt file for the list of words to select from.
  • You can run the program using the instructions in To Run below.
  • You can test technical correctness by running the unit tests as in the section To Test below.

To Run

  • python3 hangman.py
  • follow the input prompts to play the game

To Test

  • To run all the unittests: python3 -m unittest tests/test_main.py
  • To run a specific step's unittest, e.g step 1: python3 -m unittest tests.test_main.MyTestCase.test_step1
  • Note: at the minimum, these (unedited) tests must succeed before you may submit the solution for review.