date and time created 83/05/01 13:31:13 by arnold
[unix-history] / usr / src / games / cribbage / extern.c
CommitLineData
b9222c3d
KA
1# include <curses.h>
2# include "deck.h"
3# include "cribbage.h"
4
5bool iwon = FALSE; /* if comp won last game */
6bool explain = FALSE; /* player mistakes explained */
7bool rflag = FALSE; /* if all cuts random */
8bool quiet = FALSE; /* if suppress random mess */
9bool Hasread = TRUE; /* if has read msg */
10
11char expl[128]; /* explanation */
12
13int knownum = 0; /* number of cards we know */
14int pscore = 0; /* player score in this game */
15int cscore = 0; /* comp score in this game */
16int pgames = 0; /* number games player won */
17int cgames = 0; /* number games comp won */
18int gamecount = 0; /* number games played */
19int glimit = LGAME; /* game playe to glimit */
20
21CARD deck[CARDS]; /* a deck */
22CARD phand[FULLHAND]; /* player's hand */
23CARD chand[FULLHAND]; /* computer's hand */
24CARD crib[CINHAND]; /* the crib */
25CARD turnover; /* the starter */
26CARD known[CARDS]; /* cards we have seen */
27
28WINDOW *Playwin; /* player's hand window */
29WINDOW *Tablewin; /* table window */
30WINDOW *Compwin; /* computer's hand window */