1 /* 2 * Copyright (c) 1980 Regents of the University of California. 3 * All rights reserved. 4 * 5 * %sccs.include.redist.c% 6 * 7 * @(#)cribbage.h 5.5 (Berkeley) 02/03/93 8 */ 9 10 extern CARD deck[ CARDS ]; /* a deck */ 11 extern CARD phand[ FULLHAND ]; /* player's hand */ 12 extern CARD chand[ FULLHAND ]; /* computer's hand */ 13 extern CARD crib[ CINHAND ]; /* the crib */ 14 extern CARD turnover; /* the starter */ 15 16 extern CARD known[ CARDS ]; /* cards we have seen */ 17 extern int knownum; /* # of cards we know */ 18 19 extern int pscore; /* player's score */ 20 extern int cscore; /* comp's score */ 21 extern int glimit; /* points to win game */ 22 23 extern int pgames; /* player's games won */ 24 extern int cgames; /* comp's games won */ 25 extern int gamecount; /* # games played */ 26 extern int Lastscore[2]; /* previous score for each */ 27 28 extern BOOLEAN iwon; /* if comp won last */ 29 extern BOOLEAN explain; /* player mistakes explained */ 30 extern BOOLEAN rflag; /* if all cuts random */ 31 extern BOOLEAN quiet; /* if suppress random mess */ 32 extern BOOLEAN playing; /* currently playing game */ 33 34 extern char expl[]; /* string for explanation */ 35 36 #if __STDC__ 37 void msg(const char *fmt, ...); 38 void addmsg(const char *fmt, ...); 39 #else 40 void msg(); 41 void addmsg(); 42 #endif 43