xref: /csrg-svn/games/cribbage/extern.c (revision 60777)
159264Sbostic /*-
2*60777Sbostic  * Copyright (c) 1980, 1993
3*60777Sbostic  *	The Regents of the University of California.  All rights reserved.
433707Sbostic  *
542576Sbostic  * %sccs.include.redist.c%
621504Smckusick  */
721504Smckusick 
821504Smckusick #ifndef lint
9*60777Sbostic static char sccsid[] = "@(#)extern.c	8.1 (Berkeley) 05/31/93";
1033707Sbostic #endif /* not lint */
1121504Smckusick 
1259264Sbostic #include <curses.h>
1312158Sarnold 
1459264Sbostic #include "deck.h"
1559264Sbostic #include "cribbage.h"
1659264Sbostic 
1712163Sarnold bool	explain		= FALSE;	/* player mistakes explained */
1812163Sarnold bool	iwon		= FALSE;	/* if comp won last game */
1912163Sarnold bool	quiet		= FALSE;	/* if suppress random mess */
2012163Sarnold bool	rflag		= FALSE;	/* if all cuts random */
2112158Sarnold 
2212163Sarnold char	expl[128];			/* explanation */
2312158Sarnold 
2412163Sarnold int	cgames		= 0;		/* number games comp won */
2512163Sarnold int	cscore		= 0;		/* comp score in this game */
2612163Sarnold int	gamecount	= 0;		/* number games played */
2712163Sarnold int	glimit		= LGAME;	/* game playe to glimit */
2812163Sarnold int	knownum		= 0;		/* number of cards we know */
2912163Sarnold int	pgames		= 0;		/* number games player won */
3012163Sarnold int	pscore		= 0;		/* player score in this game */
3112158Sarnold 
3212163Sarnold CARD	chand[FULLHAND];		/* computer's hand */
3312163Sarnold CARD	crib[CINHAND];			/* the crib */
3412163Sarnold CARD	deck[CARDS];			/* a deck */
3512163Sarnold CARD	known[CARDS];			/* cards we have seen */
3612163Sarnold CARD	phand[FULLHAND];		/* player's hand */
3712163Sarnold CARD	turnover;			/* the starter */
3812158Sarnold 
3912163Sarnold WINDOW	*Compwin;			/* computer's hand window */
4012163Sarnold WINDOW	*Msgwin;			/* messages for the player */
4112163Sarnold WINDOW	*Playwin;			/* player's hand window */
4212163Sarnold WINDOW	*Tablewin;			/* table window */
43