Simple game of Hangman for Python 3.
- Run program (
python3 hangman.py). - A random word will be chosen from the specified
WORDFILEto be guessed. - Guess by typing one lowercase letter when prompted.
- Win within the amount of unique letter guesses as specified by
MAXLIVES.
Can be found and customised on the top portion of the source code.
WORDFILE: A list of words to be selected. One lowercase alphabetic word per line. Defaults towords.txt.MAXLIVES: Maximum amount of unique letter guesses (lives). Defaults to 10.BARRIER: Border characters to be printed. Defaults to hashes (#).