121504Smckusick /* 221504Smckusick * Copyright (c) 1980 Regents of the University of California. 333707Sbostic * All rights reserved. 433707Sbostic * 5*42576Sbostic * %sccs.include.redist.c% 621504Smckusick */ 721504Smckusick 821504Smckusick #ifndef lint 9*42576Sbostic static char sccsid[] = "@(#)extern.c 5.4 (Berkeley) 06/01/90"; 1033707Sbostic #endif /* not lint */ 1121504Smckusick 1212158Sarnold # include <curses.h> 1312158Sarnold # include "deck.h" 1412158Sarnold # include "cribbage.h" 1512158Sarnold 1612163Sarnold bool explain = FALSE; /* player mistakes explained */ 1712163Sarnold bool iwon = FALSE; /* if comp won last game */ 1812163Sarnold bool quiet = FALSE; /* if suppress random mess */ 1912163Sarnold bool rflag = FALSE; /* if all cuts random */ 2012158Sarnold 2112163Sarnold char expl[128]; /* explanation */ 2212158Sarnold 2312163Sarnold int cgames = 0; /* number games comp won */ 2412163Sarnold int cscore = 0; /* comp score in this game */ 2512163Sarnold int gamecount = 0; /* number games played */ 2612163Sarnold int glimit = LGAME; /* game playe to glimit */ 2712163Sarnold int knownum = 0; /* number of cards we know */ 2812163Sarnold int pgames = 0; /* number games player won */ 2912163Sarnold int pscore = 0; /* player score in this game */ 3012158Sarnold 3112163Sarnold CARD chand[FULLHAND]; /* computer's hand */ 3212163Sarnold CARD crib[CINHAND]; /* the crib */ 3312163Sarnold CARD deck[CARDS]; /* a deck */ 3412163Sarnold CARD known[CARDS]; /* cards we have seen */ 3512163Sarnold CARD phand[FULLHAND]; /* player's hand */ 3612163Sarnold CARD turnover; /* the starter */ 3712158Sarnold 3812163Sarnold WINDOW *Compwin; /* computer's hand window */ 3912163Sarnold WINDOW *Msgwin; /* messages for the player */ 4012163Sarnold WINDOW *Playwin; /* player's hand window */ 4112163Sarnold WINDOW *Tablewin; /* table window */ 42