Here, I provide a code for the hangman game that allows the following tricks:
- A comprehensive English words dataset from NLTK
- Only alphabet characters as user input are possible. No repetitions!
- A simplistic graphical display of the hanging (dark!)
- A total of 6 mistakes allowed --> can be made flexible upon following the steps described in the comment.
- After the game is completed, a possibility to replay is offered.