Sample output from Hangman program.
User input is in bold font and underlined.

This program plays the game of hangman.
When the window opens select the file
with the phrases you want to use.

The computer will pick a random phrase.
Enter capital letters as your guesses.
After 5 wrong guesses you lose.
I am thinking of a Movie ...

The current phrase is ***_*****_********
The letters you have not guessed yet are:
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Enter your next guess: T

You guessed T.
That is present in the secret phrase.
You have made 0 wrong guesses.

The current phrase is T**_****T_***T*T**
The letters you have not guessed yet are:
A B C D E F G H I J K L M N O P Q R S U V W X Y Z
Enter your next guess: H

You guessed H.
That is present in the secret phrase.
You have made 0 wrong guesses.

The current phrase is TH*_****T_***T*T**
The letters you have not guessed yet are:
A B C D E F G I J K L M N O P Q R S U V W X Y Z
Enter your next guess: E

You guessed E.
That is present in the secret phrase.
You have made 0 wrong guesses.

The current phrase is THE_**E*T_***T*T**
The letters you have not guessed yet are:
A B C D F G I J K L M N O P Q R S U V W X Y Z
Enter your next guess: S

You guessed S.
That is not present in the secret phrase.
You have made 1 wrong guess.

The current phrase is THE_**E*T_***T*T**
The letters you have not guessed yet are:
A B C D F G I J K L M N O P Q R U V W X Y Z
Enter your next guess: A

You guessed A.
That is present in the secret phrase.
You have made 1 wrong guess.

The current phrase is THE_**EAT_***TAT**
The letters you have not guessed yet are:
B C D F G I J K L M N O P Q R U V W X Y Z
Enter your next guess: M

You guessed M.
That is not present in the secret phrase.
You have made 2 wrong guesses.

The current phrase is THE_**EAT_***TAT**
The letters you have not guessed yet are:
B C D F G I J K L N O P Q R U V W X Y Z
Enter your next guess: O

You guessed O.
That is present in the secret phrase.
You have made 2 wrong guesses.

The current phrase is THE_**EAT_***TATO*
The letters you have not guessed yet are:
B C D F G I J K L N P Q R U V W X Y Z
Enter your next guess: A

A is not a valid guess.
The letters you have not guessed yet are:
B C D F G I J K L N P Q R U V W X Y Z
Enter your next guess: 5

5 is not a valid guess.
The letters you have not guessed yet are:
B C D F G I J K L N P Q R U V W X Y Z
Enter your next guess: (

( is not a valid guess.
The letters you have not guessed yet are:
B C D F G I J K L N P Q R U V W X Y Z
Enter your next guess: G

You guessed G.
That is present in the secret phrase.
You have made 2 wrong guesses.

The current phrase is THE_G*EAT_***TATO*
The letters you have not guessed yet are:
B C D F I J K L N P Q R U V W X Y Z
Enter your next guess: R

You guessed R.
That is present in the secret phrase.
You have made 2 wrong guesses.

The current phrase is THE_GREAT_***TATOR
The letters you have not guessed yet are:
B C D F I J K L N P Q U V W X Y Z
Enter your next guess: I

You guessed I.
That is present in the secret phrase.
You have made 2 wrong guesses.

The current phrase is THE_GREAT_*I*TATOR
The letters you have not guessed yet are:
B C D F J K L N P Q U V W X Y Z
Enter your next guess: W

You guessed W.
That is not present in the secret phrase.
You have made 3 wrong guesses.

The current phrase is THE_GREAT_*I*TATOR
The letters you have not guessed yet are:
B C D F J K L N P Q U V X Y Z
Enter your next guess: D

You guessed D.
That is present in the secret phrase.
You have made 3 wrong guesses.

The current phrase is THE_GREAT_DI*TATOR
The letters you have not guessed yet are:
B C F J K L N P Q U V X Y Z
Enter your next guess: C

You guessed C.
That is present in the secret phrase.
You have made 3 wrong guesses.

The phrase is THE_GREAT_DICTATOR.
YOU WIN!!!!

Do you want to play again?
Enter 'Y' or 'y' to play again: Y
I am thinking of a Movie ...

The current phrase is ***_***_*********
The letters you have not guessed yet are:
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Enter your next guess: T

You guessed T.
That is present in the secret phrase.
You have made 0 wrong guesses.

The current phrase is ***_***_**T******
The letters you have not guessed yet are:
A B C D E F G H I J K L M N O P Q R S U V W X Y Z
Enter your next guess: H

You guessed H.
That is not present in the secret phrase.
You have made 1 wrong guess.

The current phrase is ***_***_**T******
The letters you have not guessed yet are:
A B C D E F G I J K L M N O P Q R S U V W X Y Z
Enter your next guess: E

You guessed E.
That is present in the secret phrase.
You have made 1 wrong guess.

The current phrase is ***_***_**TE*****
The letters you have not guessed yet are:
A B C D F G I J K L M N O P Q R S U V W X Y Z
Enter your next guess: O

You guessed O.
That is present in the secret phrase.
You have made 1 wrong guess.

The current phrase is *O*_***_**TE**OO*
The letters you have not guessed yet are:
A B C D F G I J K L M N P Q R S U V W X Y Z
Enter your next guess: N

You guessed N.
That is present in the secret phrase.
You have made 1 wrong guess.

The current phrase is *O*_***_**TE*NOON
The letters you have not guessed yet are:
A B C D F G I J K L M P Q R S U V W X Y Z
Enter your next guess: A

You guessed A.
That is present in the secret phrase.
You have made 1 wrong guess.

The current phrase is *O*_*A*_A*TE*NOON
The letters you have not guessed yet are:
B C D F G I J K L M P Q R S U V W X Y Z
Enter your next guess: D

You guessed D.
That is present in the secret phrase.
You have made 1 wrong guess.

The current phrase is DO*_DA*_A*TE*NOON
The letters you have not guessed yet are:
B C F G I J K L M P Q R S U V W X Y Z
Enter your next guess: G

You guessed G.
That is present in the secret phrase.
You have made 1 wrong guess.

The current phrase is DOG_DA*_A*TE*NOON
The letters you have not guessed yet are:
B C F I J K L M P Q R S U V W X Y Z
Enter your next guess: Y

You guessed Y.
That is present in the secret phrase.
You have made 1 wrong guess.

The current phrase is DOG_DAY_A*TE*NOON
The letters you have not guessed yet are:
B C F I J K L M P Q R S U V W X Z
Enter your next guess: F

You guessed F.
That is present in the secret phrase.
You have made 1 wrong guess.

The current phrase is DOG_DAY_AFTE*NOON
The letters you have not guessed yet are:
B C I J K L M P Q R S U V W X Z
Enter your next guess: R

You guessed R.
That is present in the secret phrase.
You have made 1 wrong guess.

The phrase is DOG_DAY_AFTERNOON.
YOU WIN!!!!

Do you want to play again?
Enter 'Y' or 'y' to play again: y
I am thinking of a Movie ...

The current phrase is ***_****_*****
The letters you have not guessed yet are:
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Enter your next guess: T

You guessed T.
That is present in the secret phrase.
You have made 0 wrong guesses.

The current phrase is T**_****_*****
The letters you have not guessed yet are:
A B C D E F G H I J K L M N O P Q R S U V W X Y Z
Enter your next guess: H

You guessed H.
That is present in the secret phrase.
You have made 0 wrong guesses.

The current phrase is TH*_****_****H
The letters you have not guessed yet are:
A B C D E F G I J K L M N O P Q R S U V W X Y Z
Enter your next guess: E

You guessed E.
That is present in the secret phrase.
You have made 0 wrong guesses.

The current phrase is THE_****_****H
The letters you have not guessed yet are:
A B C D F G I J K L M N O P Q R S U V W X Y Z
Enter your next guess: A

You guessed A.
That is not present in the secret phrase.
You have made 1 wrong guess.

The current phrase is THE_****_****H
The letters you have not guessed yet are:
B C D F G I J K L M N O P Q R S U V W X Y Z
Enter your next guess: E

E is not a valid guess.
The letters you have not guessed yet are:
B C D F G I J K L M N O P Q R S U V W X Y Z
Enter your next guess: I

You guessed I.
That is present in the secret phrase.
You have made 1 wrong guess.

The current phrase is THE_*I**_****H
The letters you have not guessed yet are:
B C D F G J K L M N O P Q R S U V W X Y Z
Enter your next guess: O

You guessed O.
That is not present in the secret phrase.
You have made 2 wrong guesses.

The current phrase is THE_*I**_****H
The letters you have not guessed yet are:
B C D F G J K L M N P Q R S U V W X Y Z
Enter your next guess: U

You guessed U.
That is present in the secret phrase.
You have made 2 wrong guesses.

The current phrase is THE_*I**_*U**H
The letters you have not guessed yet are:
B C D F G J K L M N P Q R S V W X Y Z
Enter your next guess: B

You guessed B.
That is present in the secret phrase.
You have made 2 wrong guesses.

The current phrase is THE_*I**_BU**H
The letters you have not guessed yet are:
C D F G J K L M N P Q R S V W X Y Z
Enter your next guess: C

You guessed C.
That is present in the secret phrase.
You have made 2 wrong guesses.

The current phrase is THE_*I**_BU*CH
The letters you have not guessed yet are:
D F G J K L M N P Q R S V W X Y Z
Enter your next guess: D

You guessed D.
That is present in the secret phrase.
You have made 2 wrong guesses.

The current phrase is THE_*I*D_BU*CH
The letters you have not guessed yet are:
F G J K L M N P Q R S V W X Y Z
Enter your next guess: F

You guessed F.
That is not present in the secret phrase.
You have made 3 wrong guesses.

The current phrase is THE_*I*D_BU*CH
The letters you have not guessed yet are:
G J K L M N P Q R S V W X Y Z
Enter your next guess: Z

You guessed Z.
That is not present in the secret phrase.
You have made 4 wrong guesses.

The current phrase is THE_*I*D_BU*CH
The letters you have not guessed yet are:
G J K L M N P Q R S V W X Y
Enter your next guess: W

You guessed W.
That is present in the secret phrase.
You have made 4 wrong guesses.

The current phrase is THE_WI*D_BU*CH
The letters you have not guessed yet are:
G J K L M N P Q R S V X Y
Enter your next guess: Q

You guessed Q.
That is not present in the secret phrase.
You have made 5 wrong guesses.

You lose. The secret phrase was THE_WILD_BUNCH

Do you want to play again?
Enter 'Y' or 'y' to play again:
N