xref: /csrg-svn/games/hangman/extern.c (revision 60809)
133107Sbostic /*
2*60809Sbostic  * Copyright (c) 1983, 1993
3*60809Sbostic  *	The Regents of the University of California.  All rights reserved.
433107Sbostic  *
542578Sbostic  * %sccs.include.redist.c%
633107Sbostic  */
733107Sbostic 
833107Sbostic #ifndef lint
9*60809Sbostic static char sccsid[] = "@(#)extern.c	8.1 (Berkeley) 05/31/93";
1033107Sbostic #endif /* not lint */
1133107Sbostic 
1233107Sbostic # include	"hangman.h"
1333107Sbostic 
1433107Sbostic bool	Guessed[26];
1533107Sbostic 
1633107Sbostic char	Word[BUFSIZ],
1733107Sbostic 	Known[BUFSIZ],
1833107Sbostic 	*Noose_pict[] = {
1933107Sbostic 		"     ______",
2033107Sbostic 		"     |    |",
2133107Sbostic 		"     |",
2233107Sbostic 		"     |",
2333107Sbostic 		"     |",
2433107Sbostic 		"     |",
2533107Sbostic 		"   __|_____",
2633107Sbostic 		"   |      |___",
2733107Sbostic 		"   |_________|",
2833107Sbostic 		NULL
2933107Sbostic 	};
3033107Sbostic 
3133107Sbostic int	Errors,
3233107Sbostic 	Wordnum = 0;
3333107Sbostic 
3433107Sbostic double	Average = 0.0;
3533107Sbostic 
3633107Sbostic ERR_POS	Err_pos[MAXERRS] = {
3733107Sbostic 	{  2, 10, 'O' },
3833107Sbostic 	{  3, 10, '|' },
3933107Sbostic 	{  4, 10, '|' },
4033107Sbostic 	{  5,  9, '/' },
4133107Sbostic 	{  3,  9, '/' },
4233107Sbostic 	{  3, 11, '\\' },
4333107Sbostic 	{  5, 11, '\\' }
4433107Sbostic };
4533107Sbostic 
4633107Sbostic FILE	*Dict = NULL;
4733107Sbostic 
4833107Sbostic off_t	Dict_size;
49