121504Smckusick /* 221504Smckusick * Copyright (c) 1980 Regents of the University of California. 3*33707Sbostic * All rights reserved. 4*33707Sbostic * 5*33707Sbostic * Redistribution and use in source and binary forms are permitted 6*33707Sbostic * provided that this notice is preserved and that due credit is given 7*33707Sbostic * to the University of California at Berkeley. The name of the University 8*33707Sbostic * may not be used to endorse or promote products derived from this 9*33707Sbostic * software without specific prior written permission. This software 10*33707Sbostic * is provided ``as is'' without express or implied warranty. 1121504Smckusick */ 1221504Smckusick 1321504Smckusick #ifndef lint 14*33707Sbostic static char sccsid[] = "@(#)extern.c 5.2 (Berkeley) 03/10/88"; 15*33707Sbostic #endif /* not lint */ 1621504Smckusick 1712158Sarnold # include <curses.h> 1812158Sarnold # include "deck.h" 1912158Sarnold # include "cribbage.h" 2012158Sarnold 2112163Sarnold bool explain = FALSE; /* player mistakes explained */ 2212163Sarnold bool iwon = FALSE; /* if comp won last game */ 2312163Sarnold bool quiet = FALSE; /* if suppress random mess */ 2412163Sarnold bool rflag = FALSE; /* if all cuts random */ 2512158Sarnold 2612163Sarnold char expl[128]; /* explanation */ 2712158Sarnold 2812163Sarnold int cgames = 0; /* number games comp won */ 2912163Sarnold int cscore = 0; /* comp score in this game */ 3012163Sarnold int gamecount = 0; /* number games played */ 3112163Sarnold int glimit = LGAME; /* game playe to glimit */ 3212163Sarnold int knownum = 0; /* number of cards we know */ 3312163Sarnold int pgames = 0; /* number games player won */ 3412163Sarnold int pscore = 0; /* player score in this game */ 3512158Sarnold 3612163Sarnold CARD chand[FULLHAND]; /* computer's hand */ 3712163Sarnold CARD crib[CINHAND]; /* the crib */ 3812163Sarnold CARD deck[CARDS]; /* a deck */ 3912163Sarnold CARD known[CARDS]; /* cards we have seen */ 4012163Sarnold CARD phand[FULLHAND]; /* player's hand */ 4112163Sarnold CARD turnover; /* the starter */ 4212158Sarnold 4312163Sarnold WINDOW *Compwin; /* computer's hand window */ 4412163Sarnold WINDOW *Msgwin; /* messages for the player */ 4512163Sarnold WINDOW *Playwin; /* player's hand window */ 4612163Sarnold WINDOW *Tablewin; /* table window */ 47