xref: /csrg-svn/games/hangman/hangman.h (revision 60809)
133105Sbostic /*
2*60809Sbostic  * Copyright (c) 1983, 1993
3*60809Sbostic  *	The Regents of the University of California.  All rights reserved.
433105Sbostic  *
542578Sbostic  * %sccs.include.redist.c%
633105Sbostic  *
7*60809Sbostic  *	@(#)hangman.h	8.1 (Berkeley) 05/31/93
833105Sbostic  */
933105Sbostic 
1033105Sbostic # include	<curses.h>
1133105Sbostic # include	<sys/types.h>
1233105Sbostic # include	<sys/stat.h>
1333105Sbostic # include	<ctype.h>
1433105Sbostic # include	<signal.h>
1539842Sbostic # include	"pathnames.h"
1633105Sbostic 
1733105Sbostic # define	MINLEN	6
1833105Sbostic # define	MAXERRS	7
1933105Sbostic 
2033105Sbostic # define	MESGY	12
2133105Sbostic # define	MESGX	0
2233105Sbostic # define	PROMPTY	11
2333105Sbostic # define	PROMPTX	0
2433105Sbostic # define	KNOWNY	10
2533105Sbostic # define	KNOWNX	1
2633105Sbostic # define	NUMBERY	4
2733105Sbostic # define	NUMBERX	(COLS - 1 - 26)
2833105Sbostic # define	AVGY	5
2933105Sbostic # define	AVGX	(COLS - 1 - 26)
3033105Sbostic # define	GUESSY	2
3133105Sbostic # define	GUESSX	(COLS - 1 - 26)
3233105Sbostic 
3333105Sbostic 
3433105Sbostic typedef struct {
3533105Sbostic 	short	y, x;
3633105Sbostic 	char	ch;
3733105Sbostic } ERR_POS;
3833105Sbostic 
3933105Sbostic extern bool	Guessed[];
4033105Sbostic 
4133105Sbostic extern char	Word[], Known[], *Noose_pict[];
4233105Sbostic 
4333105Sbostic extern int	Errors, Wordnum;
4433105Sbostic 
4533105Sbostic extern double	Average;
4633105Sbostic 
4733105Sbostic extern ERR_POS	Err_pos[];
4833105Sbostic 
4933105Sbostic extern FILE	*Dict;
5033105Sbostic 
5133105Sbostic extern off_t	Dict_size;
5233105Sbostic 
5346744Sbostic void	die();
54