Annotation of 43BSD/games/backgammon/init.c, revision 1.1

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[] = "@(#)init.c     5.1 (Berkeley) 5/29/85";
        !             9: #endif not lint
        !            10: 
        !            11: #include <sgtty.h>
        !            12: 
        !            13: /*
        !            14:  * variable initialization.
        !            15:  */
        !            16: 
        !            17:                                /* name of executable object programs */
        !            18: char   EXEC[] = "/usr/games/backgammon";
        !            19: char   TEACH[] = "/usr/games/teachgammon";
        !            20: 
        !            21: int    pnum    = 2;            /* color of player:
        !            22:                                        -1 = white
        !            23:                                         1 = red
        !            24:                                         0 = both
        !            25:                                         2 = not yet init'ed */
        !            26: int    acnt    = 0;            /* length of args */
        !            27: int    aflag   = 1;            /* flag to ask for rules or instructions */
        !            28: int    bflag   = 0;            /* flag for automatic board printing */
        !            29: int    cflag   = 0;            /* case conversion flag */
        !            30: int    hflag   = 1;            /* flag for cleaning screen */
        !            31: int    mflag   = 0;            /* backgammon flag */
        !            32: int    raflag  = 0;            /* 'roll again' flag for recovered game */
        !            33: int    rflag   = 0;            /* recovered game flag */
        !            34: int    tflag   = 0;            /* cursor addressing flag */
        !            35: int    iroll   = 0;            /* special flag for inputting rolls */
        !            36: int    rfl     = 0;
        !            37: 
        !            38: char   *color[] = {"White","Red","white","red"};

unix.superglobalmegacorp.com

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