Below is a transcript of running the game.
Please note: you are not responsible to code any of this output.
It is generated by the downloaded main using your class. You should not
write any I/O statements in your code, unless you want to make temporary
prints for debugging.
The program is not very sophisticated; the list of words is a small one
declared at the bottom of the file. So after you find a few letters, it's
fairly easy to cheat.
bennet@bennet:hman$ ./game
=== Welcome to Hangman! ===
________
| |
|
|
|
|
|
|
|
|
|
Word: _ _ _ _ _ _ _ | Missed:
Tried 0 letter(s), with 0 incorrect.
0 word(s) attempted; 0 correct.
Enter guess: e
=== Found e ===
________
| |
|
|
|
|
|
|
|
|
|
Word: _ _ _ _ _ _ e | Missed:
Tried 1 letter(s), with 0 incorrect.
0 word(s) attempted; 0 correct.
Enter guess: a
=== No, a is wrong ===
________
| |
___ |
/ \ |
\___/ |
|
|
|
|
|
|
Word: _ _ _ _ _ _ e | Missed: a
Tried 2 letter(s), with 1 incorrect.
0 word(s) attempted; 0 correct.
Enter guess: i
=== Found i ===
________
| |
___ |
/ \ |
\___/ |
|
|
|
|
|
|
Word: _ _ _ _ _ i e | Missed: a
Tried 3 letter(s), with 1 incorrect.
0 word(s) attempted; 0 correct.
Enter guess: o
=== Found o ===
________
| |
___ |
/ \ |
\___/ |
|
|
|
|
|
|
Word: _ _ o _ _ i e | Missed: a
Tried 4 letter(s), with 1 incorrect.
0 word(s) attempted; 0 correct.
Enter guess: h
=== No, h is wrong ===
________
| |
___ |
/ \ |
\___/ |
| |
| |
| |
|
|
|
Word: _ _ o _ _ i e | Missed: a h
Tried 5 letter(s), with 2 incorrect.
0 word(s) attempted; 0 correct.
Enter guess: s
=== No, s is wrong ===
________
| |
___ |
/ \ |
\___/ |
| |
---| |
| |
|
|
|
Word: _ _ o _ _ i e | Missed: a h s
Tried 6 letter(s), with 3 incorrect.
0 word(s) attempted; 0 correct.
Enter guess: r
=== Found r ===
________
| |
___ |
/ \ |
\___/ |
| |
---| |
| |
|
|
|
Word: _ r o _ _ i e | Missed: a h s
Tried 7 letter(s), with 3 incorrect.
0 word(s) attempted; 0 correct.
Enter guess: c
=== No, c is wrong ===
________
| |
___ |
/ \ |
\___/ |
| |
---+--- |
| |
|
|
|
Word: _ r o _ _ i e | Missed: a h s c
Tried 8 letter(s), with 4 incorrect.
0 word(s) attempted; 0 correct.
Enter guess: b
=== Found b ===
________
| |
___ |
/ \ |
\___/ |
| |
---+--- |
| |
|
|
|
Word: b r o _ _ i e | Missed: a h s c
Tried 9 letter(s), with 4 incorrect.
0 word(s) attempted; 0 correct.
Enter guess: r
=== Already tried r ===
________
| |
___ |
/ \ |
\___/ |
| |
---+--- |
| |
|
|
|
Word: b r o _ _ i e | Missed: a h s c
Tried 9 letter(s), with 4 incorrect.
0 word(s) attempted; 0 correct.
Enter guess: n
=== Found n ===
________
| |
___ |
/ \ |
\___/ |
| |
---+--- |
| |
|
|
|
Word: b r o _ n i e | Missed: a h s c
Tried 10 letter(s), with 4 incorrect.
0 word(s) attempted; 0 correct.
Enter guess: w
=== Congratulations! ===
________
| |
___ |
/ \ |
\___/ |
| |
---+--- |
| |
|
|
|
Word: b r o w n i e | Missed: a h s c
Tried 11 letter(s), with 4 incorrect.
1 word(s) attempted; 1 correct.
=== Try another! ===
Word: _ _ _ _ _ _ | Missed:
Tried 0 letter(s), with 0 incorrect.
1 word(s) attempted; 1 correct.
Enter guess: e
=== No, e is wrong ===
________
| |
___ |
/ \ |
\___/ |
|
|
|
|
|
|
Word: _ _ _ _ _ _ | Missed: e
Tried 1 letter(s), with 1 incorrect.
1 word(s) attempted; 1 correct.
Enter guess: i
=== No, i is wrong ===
________
| |
___ |
/ \ |
\___/ |
| |
| |
| |
|
|
|
Word: _ _ _ _ _ _ | Missed: e i
Tried 2 letter(s), with 2 incorrect.
1 word(s) attempted; 1 correct.
Enter guess: o
=== Found o ===
________
| |
___ |
/ \ |
\___/ |
| |
| |
| |
|
|
|
Word: _ _ _ o _ _ | Missed: e i
Tried 3 letter(s), with 2 incorrect.
1 word(s) attempted; 1 correct.
Enter guess: u
=== No, u is wrong ===
________
| |
___ |
/ \ |
\___/ |
| |
---| |
| |
|
|
|
Word: _ _ _ o _ _ | Missed: e i u
Tried 4 letter(s), with 3 incorrect.
1 word(s) attempted; 1 correct.
Enter guess: r
=== Found r ===
________
| |
___ |
/ \ |
\___/ |
| |
---| |
| |
|
|
|
Word: _ r _ o r _ | Missed: e i u
Tried 5 letter(s), with 3 incorrect.
1 word(s) attempted; 1 correct.
Enter guess: s
=== Found s ===
________
| |
___ |
/ \ |
\___/ |
| |
---| |
| |
|
|
|
Word: _ r _ o r s | Missed: e i u
Tried 6 letter(s), with 3 incorrect.
1 word(s) attempted; 1 correct.
Enter guess: t
=== No, t is wrong ===
________
| |
___ |
/ \ |
\___/ |
| |
---+--- |
| |
|
|
|
Word: _ r _ o r s | Missed: e i u t
Tried 7 letter(s), with 4 incorrect.
1 word(s) attempted; 1 correct.
Enter guess: c
=== No, c is wrong ===
________
| |
___ |
/ \ |
\___/ |
| |
---+--- |
| |
/ |
/ |
|
Word: _ r _ o r s | Missed: e i u t c
Tried 8 letter(s), with 5 incorrect.
1 word(s) attempted; 1 correct.
Enter guess: g
=== Sorry. The word was arbors ===
________
| |
___ |
/ \ |
\___/ |
| |
---+--- |
| |
/ \ |
/ \ |
|
Word: _ r _ o r s | Missed: e i u t c g
Tried 9 letter(s), with 6 incorrect.
2 word(s) attempted; 1 correct.
=== Try another! ===
Word: _ _ _ _ _ _ _ | Missed:
Tried 0 letter(s), with 0 incorrect.
2 word(s) attempted; 1 correct.
Enter guess: !q
bennet@bennet:hman$