Hangman

This game is one of the scripts in my three way tie for favorite game (another is listed here, to find the third you'll have to ask me!). This game was made early on in my Python learning experience and is implemented rather ingeniously if I do say so myself; on *nix based systems (OS X, Linux, BSD) you have a local file called a words file. It's use is for programs that need to perform spell checking so it has a rather large list. I use this file for my game to randomly select a word from that list. Here's a screenshot of the game:

How Does the Game Work?

I'm pretty sure you know how to play hangman, but here's a rundown: someone tells you the length of the word and then you have to start guessing letters. If the letters are not in the word they start drawing the various parts of a man being hanged. You generally get a few incorrect guesses before you "die". If you think you know the word, you can just guess it as well; you don't need to go through every letter.

The Code

As with all my other scripts and projects, it can be found on my Github page. The link for this in particular can be found here.