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