|
|
1.1 root 1: # include "hangman.h"
2:
3: /*
4: * playgame:
5: * play a game
6: */
7: playgame()
8: {
9: register bool *bp;
10:
11: getword();
12: Errors = 0;
13: bp = Guessed;
14: while (bp < &Guessed[26])
15: *bp++ = FALSE;
16: while (Errors < MAXERRS && index(Known, '-') != NULL) {
17: prword();
18: prdata();
19: prman();
20: getguess();
21: }
22: endgame();
23: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.