CS 106A Hangman!
I will think of a random word.
You'll try to guess its letters.
Every time you guess a letter
that isn't in my word, a new body
part of the hanging man appears.
Guess correctly to avoid the gallows!

Secret word : ----------
Your guesses: 
Guesses left: 8
Your guess? K
Incorrect.
Secret word : ----------
Your guesses: K
Guesses left: 7
Your guess? r
Correct!
Secret word : -R--R----R
Your guesses: KR
Guesses left: 7
Your guess? T
Incorrect.
Secret word : -R--R----R
Your guesses: KRT
Guesses left: 6
Your guess? M
Correct!
Secret word : -R--R-MM-R
Your guesses: KRTM
Guesses left: 6
Your guess? R
You already guessed that letter.
Your guess? x
Incorrect.
Secret word : -R--R-MM-R
Your guesses: KRTMX
Guesses left: 5
Your guess? e
Correct!
Secret word : -R--R-MMER
Your guesses: KRTMXE
Guesses left: 5
Your guess? G
Correct!
Secret word : -R-GR-MMER
Your guesses: KRTMXEG
Guesses left: 5
Your guess? t
You already guessed that letter.
Your guess? E
You already guessed that letter.
Your guess? e
You already guessed that letter.
Your guess? 3
Type a single letter from A-Z.
Your guess? what
Type a single letter from A-Z.
Your guess? I don't understand
Type a single letter from A-Z.
Your guess? 
Type a single letter from A-Z.
Your guess? Z
Incorrect.
Secret word : -R-GR-MMER
Your guesses: KRTMXEGZ
Guesses left: 4
Your guess? Q
Incorrect.
Secret word : -R-GR-MMER
Your guesses: KRTMXEGZQ
Guesses left: 3
Your guess? n
Incorrect.
Secret word : -R-GR-MMER
Your guesses: KRTMXEGZQN
Guesses left: 2
Your guess? y
Incorrect.
Secret word : -R-GR-MMER
Your guesses: KRTMXEGZQNY
Guesses left: 1
Your guess? L
Incorrect.
You lose! My word was "PROGRAMMER".
