1*21504Smckusick /* 2*21504Smckusick * Copyright (c) 1980 Regents of the University of California. 3*21504Smckusick * All rights reserved. The Berkeley software License Agreement 4*21504Smckusick * specifies the terms and conditions for redistribution. 5*21504Smckusick */ 6*21504Smckusick 7*21504Smckusick #ifndef lint 8*21504Smckusick static char sccsid[] = "@(#)extern.c 5.1 (Berkeley) 05/30/85"; 9*21504Smckusick #endif not lint 10*21504Smckusick 1112158Sarnold # include <curses.h> 1212158Sarnold # include "deck.h" 1312158Sarnold # include "cribbage.h" 1412158Sarnold 1512163Sarnold bool explain = FALSE; /* player mistakes explained */ 1612163Sarnold bool iwon = FALSE; /* if comp won last game */ 1712163Sarnold bool quiet = FALSE; /* if suppress random mess */ 1812163Sarnold bool rflag = FALSE; /* if all cuts random */ 1912158Sarnold 2012163Sarnold char expl[128]; /* explanation */ 2112158Sarnold 2212163Sarnold int cgames = 0; /* number games comp won */ 2312163Sarnold int cscore = 0; /* comp score in this game */ 2412163Sarnold int gamecount = 0; /* number games played */ 2512163Sarnold int glimit = LGAME; /* game playe to glimit */ 2612163Sarnold int knownum = 0; /* number of cards we know */ 2712163Sarnold int pgames = 0; /* number games player won */ 2812163Sarnold int pscore = 0; /* player score in this game */ 2912158Sarnold 3012163Sarnold CARD chand[FULLHAND]; /* computer's hand */ 3112163Sarnold CARD crib[CINHAND]; /* the crib */ 3212163Sarnold CARD deck[CARDS]; /* a deck */ 3312163Sarnold CARD known[CARDS]; /* cards we have seen */ 3412163Sarnold CARD phand[FULLHAND]; /* player's hand */ 3512163Sarnold CARD turnover; /* the starter */ 3612158Sarnold 3712163Sarnold WINDOW *Compwin; /* computer's hand window */ 3812163Sarnold WINDOW *Msgwin; /* messages for the player */ 3912163Sarnold WINDOW *Playwin; /* player's hand window */ 4012163Sarnold WINDOW *Tablewin; /* table window */ 41