|
|
1.1 ! root 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) 5/30/85"; ! 9: #endif not lint ! 10: ! 11: # include <curses.h> ! 12: # include "deck.h" ! 13: # include "cribbage.h" ! 14: ! 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 */ ! 19: ! 20: char expl[128]; /* explanation */ ! 21: ! 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 */ ! 29: ! 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 */ ! 36: ! 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 */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.