xref: /original-bsd/games/hangman/extern.c (revision f0203ecd)
1 /*
2  * Copyright (c) 1983 Regents of the University of California.
3  * All rights reserved.
4  *
5  * %sccs.include.redist.c%
6  */
7 
8 #ifndef lint
9 static char sccsid[] = "@(#)extern.c	5.3 (Berkeley) 06/01/90";
10 #endif /* not lint */
11 
12 # include	"hangman.h"
13 
14 bool	Guessed[26];
15 
16 char	Word[BUFSIZ],
17 	Known[BUFSIZ],
18 	*Noose_pict[] = {
19 		"     ______",
20 		"     |    |",
21 		"     |",
22 		"     |",
23 		"     |",
24 		"     |",
25 		"   __|_____",
26 		"   |      |___",
27 		"   |_________|",
28 		NULL
29 	};
30 
31 int	Errors,
32 	Wordnum = 0;
33 
34 double	Average = 0.0;
35 
36 ERR_POS	Err_pos[MAXERRS] = {
37 	{  2, 10, 'O' },
38 	{  3, 10, '|' },
39 	{  4, 10, '|' },
40 	{  5,  9, '/' },
41 	{  3,  9, '/' },
42 	{  3, 11, '\\' },
43 	{  5, 11, '\\' }
44 };
45 
46 FILE	*Dict = NULL;
47 
48 off_t	Dict_size;
49