xref: /original-bsd/games/cribbage/extern.c (revision efe8c834)
1 /*-
2  * Copyright (c) 1980, 1993
3  *	The Regents of the University of California.  All rights reserved.
4  *
5  * %sccs.include.redist.c%
6  */
7 
8 #ifndef lint
9 static char sccsid[] = "@(#)extern.c	8.1 (Berkeley) 05/31/93";
10 #endif /* not lint */
11 
12 #include <curses.h>
13 
14 #include "deck.h"
15 #include "cribbage.h"
16 
17 bool	explain		= FALSE;	/* player mistakes explained */
18 bool	iwon		= FALSE;	/* if comp won last game */
19 bool	quiet		= FALSE;	/* if suppress random mess */
20 bool	rflag		= FALSE;	/* if all cuts random */
21 
22 char	expl[128];			/* explanation */
23 
24 int	cgames		= 0;		/* number games comp won */
25 int	cscore		= 0;		/* comp score in this game */
26 int	gamecount	= 0;		/* number games played */
27 int	glimit		= LGAME;	/* game playe to glimit */
28 int	knownum		= 0;		/* number of cards we know */
29 int	pgames		= 0;		/* number games player won */
30 int	pscore		= 0;		/* player score in this game */
31 
32 CARD	chand[FULLHAND];		/* computer's hand */
33 CARD	crib[CINHAND];			/* the crib */
34 CARD	deck[CARDS];			/* a deck */
35 CARD	known[CARDS];			/* cards we have seen */
36 CARD	phand[FULLHAND];		/* player's hand */
37 CARD	turnover;			/* the starter */
38 
39 WINDOW	*Compwin;			/* computer's hand window */
40 WINDOW	*Msgwin;			/* messages for the player */
41 WINDOW	*Playwin;			/* player's hand window */
42 WINDOW	*Tablewin;			/* table window */
43