add Berkeley specific header
[unix-history] / usr / src / games / cribbage / extern.c
CommitLineData
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
8static 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
15bool explain = FALSE; /* player mistakes explained */
16bool iwon = FALSE; /* if comp won last game */
17bool quiet = FALSE; /* if suppress random mess */
18bool rflag = FALSE; /* if all cuts random */
b9222c3d 19
39911be8 20char expl[128]; /* explanation */
b9222c3d 21
39911be8
KA
22int cgames = 0; /* number games comp won */
23int cscore = 0; /* comp score in this game */
24int gamecount = 0; /* number games played */
25int glimit = LGAME; /* game playe to glimit */
26int knownum = 0; /* number of cards we know */
27int pgames = 0; /* number games player won */
28int pscore = 0; /* player score in this game */
b9222c3d 29
39911be8
KA
30CARD chand[FULLHAND]; /* computer's hand */
31CARD crib[CINHAND]; /* the crib */
32CARD deck[CARDS]; /* a deck */
33CARD known[CARDS]; /* cards we have seen */
34CARD phand[FULLHAND]; /* player's hand */
35CARD turnover; /* the starter */
b9222c3d 36
39911be8
KA
37WINDOW *Compwin; /* computer's hand window */
38WINDOW *Msgwin; /* messages for the player */
39WINDOW *Playwin; /* player's hand window */
40WINDOW *Tablewin; /* table window */