Annotation of 43BSDReno/games/cribbage/extern.c, revision 1.1

1.1     ! root        1: /*
        !             2:  * Copyright (c) 1980 Regents of the University of California.
        !             3:  * All rights reserved.
        !             4:  *
        !             5:  * Redistribution and use in source and binary forms are permitted
        !             6:  * provided that: (1) source distributions retain this entire copyright
        !             7:  * notice and comment, and (2) distributions including binaries display
        !             8:  * the following acknowledgement:  ``This product includes software
        !             9:  * developed by the University of California, Berkeley and its contributors''
        !            10:  * in the documentation or other materials provided with the distribution
        !            11:  * and in all advertising materials mentioning features or use of this
        !            12:  * software. Neither the name of the University nor the names of its
        !            13:  * contributors may be used to endorse or promote products derived
        !            14:  * from this software without specific prior written permission.
        !            15:  * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
        !            16:  * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
        !            17:  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
        !            18:  */
        !            19: 
        !            20: #ifndef lint
        !            21: static char sccsid[] = "@(#)extern.c   5.4 (Berkeley) 6/1/90";
        !            22: #endif /* not lint */
        !            23: 
        !            24: # include      <curses.h>
        !            25: # include      "deck.h"
        !            26: # include      "cribbage.h"
        !            27: 
        !            28: bool   explain         = FALSE;        /* player mistakes explained */
        !            29: bool   iwon            = FALSE;        /* if comp won last game */
        !            30: bool   quiet           = FALSE;        /* if suppress random mess */
        !            31: bool   rflag           = FALSE;        /* if all cuts random */
        !            32: 
        !            33: char   expl[128];                      /* explanation */
        !            34: 
        !            35: int    cgames          = 0;            /* number games comp won */
        !            36: int    cscore          = 0;            /* comp score in this game */
        !            37: int    gamecount       = 0;            /* number games played */
        !            38: int    glimit          = LGAME;        /* game playe to glimit */
        !            39: int    knownum         = 0;            /* number of cards we know */
        !            40: int    pgames          = 0;            /* number games player won */
        !            41: int    pscore          = 0;            /* player score in this game */
        !            42: 
        !            43: CARD   chand[FULLHAND];                /* computer's hand */
        !            44: CARD   crib[CINHAND];                  /* the crib */
        !            45: CARD   deck[CARDS];                    /* a deck */
        !            46: CARD   known[CARDS];                   /* cards we have seen */
        !            47: CARD   phand[FULLHAND];                /* player's hand */
        !            48: CARD   turnover;                       /* the starter */
        !            49: 
        !            50: WINDOW *Compwin;                       /* computer's hand window */
        !            51: WINDOW *Msgwin;                        /* messages for the player */
        !            52: WINDOW *Playwin;                       /* player's hand window */
        !            53: WINDOW *Tablewin;                      /* table window */

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.