Jonathan. Frech’s WebBlog

Hangman (#16)

Jonathan Frech

On a recent train ride I made a little Python program to play Hangman.
My version has 7 stages (you could im­ple­ment more by changing the STAGES variable) and is at best playable if you have someone else who gives you a word (you can also type “r” for a ran­dom word, but the list of ran­dom words is not very long).

Source code: hangman.py