1 /* 2 * Copyright (c) 1980 Regents of the University of California. 3 * All rights reserved. 4 * 5 * %sccs.include.redist.c% 6 */ 7 8 #ifndef lint 9 static char sccsid[] = "@(#)extern.c 5.4 (Berkeley) 06/01/90"; 10 #endif /* not lint */ 11 12 # include <curses.h> 13 # include "deck.h" 14 # include "cribbage.h" 15 16 bool explain = FALSE; /* player mistakes explained */ 17 bool iwon = FALSE; /* if comp won last game */ 18 bool quiet = FALSE; /* if suppress random mess */ 19 bool rflag = FALSE; /* if all cuts random */ 20 21 char expl[128]; /* explanation */ 22 23 int cgames = 0; /* number games comp won */ 24 int cscore = 0; /* comp score in this game */ 25 int gamecount = 0; /* number games played */ 26 int glimit = LGAME; /* game playe to glimit */ 27 int knownum = 0; /* number of cards we know */ 28 int pgames = 0; /* number games player won */ 29 int pscore = 0; /* player score in this game */ 30 31 CARD chand[FULLHAND]; /* computer's hand */ 32 CARD crib[CINHAND]; /* the crib */ 33 CARD deck[CARDS]; /* a deck */ 34 CARD known[CARDS]; /* cards we have seen */ 35 CARD phand[FULLHAND]; /* player's hand */ 36 CARD turnover; /* the starter */ 37 38 WINDOW *Compwin; /* computer's hand window */ 39 WINDOW *Msgwin; /* messages for the player */ 40 WINDOW *Playwin; /* player's hand window */ 41 WINDOW *Tablewin; /* table window */ 42