|
|
1.1 root 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 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.
16: *
17: * @(#)cribbage.h 5.3 (Berkeley) 6/18/88
18: */
19:
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 */
36: extern int Lastscore[2]; /* previous score for each */
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 */
42: extern BOOLEAN playing; /* currently playing game */
43:
44: extern char expl[]; /* string for explanation */
45:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.