Commit | Line | Data |
---|---|---|
6cca9b39 KM |
1 | /* |
2 | * Copyright (c) 1980 Regents of the University of California. | |
3 | * All rights reserved. The Berkeley software License Agreement | |
4 | * specifies the terms and conditions for redistribution. | |
5 | */ | |
6 | ||
7 | #ifndef lint | |
8 | static char sccsid[] = "@(#)extern.c 5.1 (Berkeley) %G%"; | |
9 | #endif not lint | |
10 | ||
b9222c3d KA |
11 | # include <curses.h> |
12 | # include "deck.h" | |
13 | # include "cribbage.h" | |
14 | ||
39911be8 KA |
15 | bool explain = FALSE; /* player mistakes explained */ |
16 | bool iwon = FALSE; /* if comp won last game */ | |
17 | bool quiet = FALSE; /* if suppress random mess */ | |
18 | bool rflag = FALSE; /* if all cuts random */ | |
b9222c3d | 19 | |
39911be8 | 20 | char expl[128]; /* explanation */ |
b9222c3d | 21 | |
39911be8 KA |
22 | int cgames = 0; /* number games comp won */ |
23 | int cscore = 0; /* comp score in this game */ | |
24 | int gamecount = 0; /* number games played */ | |
25 | int glimit = LGAME; /* game playe to glimit */ | |
26 | int knownum = 0; /* number of cards we know */ | |
27 | int pgames = 0; /* number games player won */ | |
28 | int pscore = 0; /* player score in this game */ | |
b9222c3d | 29 | |
39911be8 KA |
30 | CARD chand[FULLHAND]; /* computer's hand */ |
31 | CARD crib[CINHAND]; /* the crib */ | |
32 | CARD deck[CARDS]; /* a deck */ | |
33 | CARD known[CARDS]; /* cards we have seen */ | |
34 | CARD phand[FULLHAND]; /* player's hand */ | |
35 | CARD turnover; /* the starter */ | |
b9222c3d | 36 | |
39911be8 KA |
37 | WINDOW *Compwin; /* computer's hand window */ |
38 | WINDOW *Msgwin; /* messages for the player */ | |
39 | WINDOW *Playwin; /* player's hand window */ | |
40 | WINDOW *Tablewin; /* table window */ |