BSD 4_3_Reno development
[unix-history] / .ref-BSD-4_3_Tahoe / usr / src / games / cribbage / extern.c
CommitLineData
6cca9b39
KM
1/*
2 * Copyright (c) 1980 Regents of the University of California.
bf870064
KB
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms are permitted
b8c620d6
KB
6 * provided that the above copyright notice and this paragraph are
7 * duplicated in all such forms and that any documentation,
8 * advertising materials, and other materials related to such
9 * distribution and use acknowledge that the software was developed
10 * by the University of California, Berkeley. The name of the
11 * University may not be used to endorse or promote products derived
12 * from this software without specific prior written permission.
13 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
14 * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
15 * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
6cca9b39
KM
16 */
17
18#ifndef lint
ca67e7b4 19static char sccsid[] = "@(#)extern.c 5.3 (Berkeley) 6/18/88";
bf870064 20#endif /* not lint */
6cca9b39 21
b9222c3d
KA
22# include <curses.h>
23# include "deck.h"
24# include "cribbage.h"
25
39911be8
KA
26bool explain = FALSE; /* player mistakes explained */
27bool iwon = FALSE; /* if comp won last game */
28bool quiet = FALSE; /* if suppress random mess */
29bool rflag = FALSE; /* if all cuts random */
b9222c3d 30
39911be8 31char expl[128]; /* explanation */
b9222c3d 32
39911be8
KA
33int cgames = 0; /* number games comp won */
34int cscore = 0; /* comp score in this game */
35int gamecount = 0; /* number games played */
36int glimit = LGAME; /* game playe to glimit */
37int knownum = 0; /* number of cards we know */
38int pgames = 0; /* number games player won */
39int pscore = 0; /* player score in this game */
b9222c3d 40
39911be8
KA
41CARD chand[FULLHAND]; /* computer's hand */
42CARD crib[CINHAND]; /* the crib */
43CARD deck[CARDS]; /* a deck */
44CARD known[CARDS]; /* cards we have seen */
45CARD phand[FULLHAND]; /* player's hand */
46CARD turnover; /* the starter */
b9222c3d 47
39911be8
KA
48WINDOW *Compwin; /* computer's hand window */
49WINDOW *Msgwin; /* messages for the player */
50WINDOW *Playwin; /* player's hand window */
51WINDOW *Tablewin; /* table window */