Commit | Line | Data |
---|---|---|
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 |
20 | extern CARD deck[ CARDS ]; /* a deck */ |
21 | extern CARD phand[ FULLHAND ]; /* player's hand */ | |
22 | extern CARD chand[ FULLHAND ]; /* computer's hand */ | |
23 | extern CARD crib[ CINHAND ]; /* the crib */ | |
24 | extern CARD turnover; /* the starter */ | |
25 | ||
26 | extern CARD known[ CARDS ]; /* cards we have seen */ | |
27 | extern int knownum; /* # of cards we know */ | |
28 | ||
29 | extern int pscore; /* player's score */ | |
30 | extern int cscore; /* comp's score */ | |
31 | extern int glimit; /* points to win game */ | |
32 | ||
33 | extern int pgames; /* player's games won */ | |
34 | extern int cgames; /* comp's games won */ | |
35 | extern int gamecount; /* # games played */ | |
5836528f | 36 | extern int Lastscore[2]; /* previous score for each */ |
13e793a1 KA |
37 | |
38 | extern BOOLEAN iwon; /* if comp won last */ | |
39 | extern BOOLEAN explain; /* player mistakes explained */ | |
40 | extern BOOLEAN rflag; /* if all cuts random */ | |
41 | extern BOOLEAN quiet; /* if suppress random mess */ | |
5836528f | 42 | extern BOOLEAN playing; /* currently playing game */ |
13e793a1 KA |
43 | |
44 | extern char expl[]; /* string for explanation */ | |
45 |