Commit | Line | Data |
---|---|---|
19d84893 KB |
1 | /* |
2 | * Copyright (c) 1987 Regents of the University of California. | |
3 | * All rights reserved. | |
4 | * | |
5 | * Redistribution and use in source and binary forms are permitted | |
6 | * provided that this notice is preserved and that due credit is given | |
7 | * to the University of California at Berkeley. The name of the University | |
8 | * may not be used to endorse or promote products derived from this | |
9 | * software without specific prior written permission. This software | |
10 | * is provided ``as is'' without express or implied warranty. | |
11 | */ | |
12 | ||
13 | #ifndef lint | |
14 | static char sccsid[] = "@(#)extern.c 5.1 (Berkeley) %G%"; | |
15 | #endif /* not lint */ | |
16 | ||
17 | # include "hangman.h" | |
18 | ||
19 | bool Guessed[26]; | |
20 | ||
21 | char Word[BUFSIZ], | |
22 | Known[BUFSIZ], | |
23 | *Noose_pict[] = { | |
24 | " ______", | |
25 | " | |", | |
26 | " |", | |
27 | " |", | |
28 | " |", | |
29 | " |", | |
30 | " __|_____", | |
31 | " | |___", | |
32 | " |_________|", | |
33 | NULL | |
34 | }; | |
35 | ||
36 | int Errors, | |
37 | Wordnum = 0; | |
38 | ||
39 | double Average = 0.0; | |
40 | ||
41 | ERR_POS Err_pos[MAXERRS] = { | |
42 | { 2, 10, 'O' }, | |
43 | { 3, 10, '|' }, | |
44 | { 4, 10, '|' }, | |
45 | { 5, 9, '/' }, | |
46 | { 3, 9, '/' }, | |
47 | { 3, 11, '\\' }, | |
48 | { 5, 11, '\\' } | |
49 | }; | |
50 | ||
51 | FILE *Dict = NULL; | |
52 | ||
53 | off_t Dict_size; |