xref: /csrg-svn/games/cribbage/cribbage.h (revision 33706)
1 /*
2  * Copyright (c) 1980 Regents of the University of California.
3  * All rights reserved.
4  *
5  * Redistribution and use in source and binary forms are permitted
6  * provided that this notice is preserved and that due credit is given
7  * to the University of California at Berkeley. The name of the University
8  * may not be used to endorse or promote products derived from this
9  * software without specific prior written permission. This software
10  * is provided ``as is'' without express or implied warranty.
11  *
12  *	@(#)cribbage.h	5.2 (Berkeley) 03/10/88
13  */
14 
15 extern  CARD		deck[ CARDS ];		/* a deck */
16 extern  CARD		phand[ FULLHAND ];	/* player's hand */
17 extern  CARD		chand[ FULLHAND ];	/* computer's hand */
18 extern  CARD		crib[ CINHAND ];	/* the crib */
19 extern  CARD		turnover;		/* the starter */
20 
21 extern  CARD		known[ CARDS ];		/* cards we have seen */
22 extern  int		knownum;		/* # of cards we know */
23 
24 extern  int		pscore;			/* player's score */
25 extern  int		cscore;			/* comp's score */
26 extern  int		glimit;			/* points to win game */
27 
28 extern  int		pgames;			/* player's games won */
29 extern  int		cgames;			/* comp's games won */
30 extern  int		gamecount;		/* # games played */
31 extern	int		Lastscore[2];		/* previous score for each */
32 
33 extern  BOOLEAN		iwon;			/* if comp won last */
34 extern  BOOLEAN		explain;		/* player mistakes explained */
35 extern  BOOLEAN		rflag;			/* if all cuts random */
36 extern  BOOLEAN		quiet;			/* if suppress random mess */
37 extern	BOOLEAN		playing;		/* currently playing game */
38 
39 extern  char		expl[];			/* string for explanation */
40 
41