date and time created 90/06/01 13:04:51 by bostic
[unix-history] / usr / src / games / cribbage / cribbage.h
CommitLineData
6cca9b39
KM
1/*
2 * Copyright (c) 1980 Regents of the University of California.
bf870064 3 * All rights reserved.
6cca9b39 4 *
bf870064 5 * Redistribution and use in source and binary forms are permitted
b8c620d6
KB
6 * provided that the above copyright notice and this paragraph are
7 * duplicated in all such forms and that any documentation,
8 * advertising materials, and other materials related to such
9 * distribution and use acknowledge that the software was developed
10 * by the University of California, Berkeley. The name of the
11 * University may not be used to endorse or promote products derived
12 * from this software without specific prior written permission.
13 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
14 * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
15 * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
bf870064 16 *
b8c620d6 17 * @(#)cribbage.h 5.3 (Berkeley) %G%
6cca9b39 18 */
9a6fbd6d 19
13e793a1
KA
20extern CARD deck[ CARDS ]; /* a deck */
21extern CARD phand[ FULLHAND ]; /* player's hand */
22extern CARD chand[ FULLHAND ]; /* computer's hand */
23extern CARD crib[ CINHAND ]; /* the crib */
24extern CARD turnover; /* the starter */
25
26extern CARD known[ CARDS ]; /* cards we have seen */
27extern int knownum; /* # of cards we know */
28
29extern int pscore; /* player's score */
30extern int cscore; /* comp's score */
31extern int glimit; /* points to win game */
32
33extern int pgames; /* player's games won */
34extern int cgames; /* comp's games won */
35extern int gamecount; /* # games played */
5836528f 36extern int Lastscore[2]; /* previous score for each */
13e793a1
KA
37
38extern BOOLEAN iwon; /* if comp won last */
39extern BOOLEAN explain; /* player mistakes explained */
40extern BOOLEAN rflag; /* if all cuts random */
41extern BOOLEAN quiet; /* if suppress random mess */
5836528f 42extern BOOLEAN playing; /* currently playing game */
13e793a1
KA
43
44extern char expl[]; /* string for explanation */
45