xref: /original-bsd/games/hangman/hangman.h (revision bdac0c45)
16d10c2efSbostic /*
2*bdac0c45Sbostic  * Copyright (c) 1983, 1993
3*bdac0c45Sbostic  *	The Regents of the University of California.  All rights reserved.
46d10c2efSbostic  *
5a5e8528fSbostic  * %sccs.include.redist.c%
66d10c2efSbostic  *
7*bdac0c45Sbostic  *	@(#)hangman.h	8.1 (Berkeley) 05/31/93
86d10c2efSbostic  */
96d10c2efSbostic 
106d10c2efSbostic # include	<curses.h>
116d10c2efSbostic # include	<sys/types.h>
126d10c2efSbostic # include	<sys/stat.h>
136d10c2efSbostic # include	<ctype.h>
146d10c2efSbostic # include	<signal.h>
155bfa3c83Sbostic # include	"pathnames.h"
166d10c2efSbostic 
176d10c2efSbostic # define	MINLEN	6
186d10c2efSbostic # define	MAXERRS	7
196d10c2efSbostic 
206d10c2efSbostic # define	MESGY	12
216d10c2efSbostic # define	MESGX	0
226d10c2efSbostic # define	PROMPTY	11
236d10c2efSbostic # define	PROMPTX	0
246d10c2efSbostic # define	KNOWNY	10
256d10c2efSbostic # define	KNOWNX	1
266d10c2efSbostic # define	NUMBERY	4
276d10c2efSbostic # define	NUMBERX	(COLS - 1 - 26)
286d10c2efSbostic # define	AVGY	5
296d10c2efSbostic # define	AVGX	(COLS - 1 - 26)
306d10c2efSbostic # define	GUESSY	2
316d10c2efSbostic # define	GUESSX	(COLS - 1 - 26)
326d10c2efSbostic 
336d10c2efSbostic 
346d10c2efSbostic typedef struct {
356d10c2efSbostic 	short	y, x;
366d10c2efSbostic 	char	ch;
376d10c2efSbostic } ERR_POS;
386d10c2efSbostic 
396d10c2efSbostic extern bool	Guessed[];
406d10c2efSbostic 
416d10c2efSbostic extern char	Word[], Known[], *Noose_pict[];
426d10c2efSbostic 
436d10c2efSbostic extern int	Errors, Wordnum;
446d10c2efSbostic 
456d10c2efSbostic extern double	Average;
466d10c2efSbostic 
476d10c2efSbostic extern ERR_POS	Err_pos[];
486d10c2efSbostic 
496d10c2efSbostic extern FILE	*Dict;
506d10c2efSbostic 
516d10c2efSbostic extern off_t	Dict_size;
526d10c2efSbostic 
53b21da0a0Sbostic void	die();
54