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