The computer randomly pick from a pre-set list of words. It will then ask you to guess. You have 7 chances to guess correctly before you get hanged and lose the game.
You also start off with 30 points ($30). If you guess the right letter, you gets 5 points. If you guess the wrong letter, you lose 5 points. You lose the game when you have less than 5 points.
Random
Defining function
While-loop
IF, Else-if
Enumerate