|
|
1.1 root 1: # include <curses.h>
2: # include <sys/types.h>
3: # include <sys/stat.h>
4: # include <ctype.h>
5: # include <signal.h>
6:
7: # define MINLEN 6
8: # define MAXERRS 7
9: # define DICT "/usr/dict/words"
10:
11: # define MESGY 12
12: # define MESGX 0
13: # define PROMPTY 11
14: # define PROMPTX 0
15: # define KNOWNY 10
16: # define KNOWNX 1
17: # define NUMBERY 4
18: # define NUMBERX (COLS - 1 - 26)
19: # define AVGY 5
20: # define AVGX (COLS - 1 - 26)
21: # define GUESSY 2
22: # define GUESSX (COLS - 1 - 26)
23:
24:
25: typedef struct {
26: short y, x;
27: char ch;
28: } ERR_POS;
29:
30: extern bool Guessed[];
31:
32: extern char Word[], Known[], *Noose_pict[];
33:
34: extern int Errors, Wordnum;
35:
36: extern double Average;
37:
38: extern ERR_POS Err_pos[];
39:
40: extern FILE *Dict;
41:
42: extern off_t Dict_size;
43:
44: int die();
45:
46: off_t abs();
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.