Annotation of 42BSD/games/backgammon/init.c, revision 1.1.1.1

1.1       root        1: static char sccsid[] = "       init.c  4.1     82/05/11        ";
                      2: 
                      3: #include <sgtty.h>
                      4: 
                      5: /*
                      6:  * variable initialization.
                      7:  */
                      8: 
                      9:                                /* name of executable object programs */
                     10: char   EXEC[] = "/usr/games/backgammon";
                     11: char   TEACH[] = "/usr/games/teachgammon";
                     12: 
                     13: int    pnum    = 2;            /* color of player:
                     14:                                        -1 = white
                     15:                                         1 = red
                     16:                                         0 = both
                     17:                                         2 = not yet init'ed */
                     18: int    acnt    = 0;            /* length of args */
                     19: int    aflag   = 1;            /* flag to ask for rules or instructions */
                     20: int    bflag   = 0;            /* flag for automatic board printing */
                     21: int    cflag   = 0;            /* case conversion flag */
                     22: int    hflag   = 1;            /* flag for cleaning screen */
                     23: int    mflag   = 0;            /* backgammon flag */
                     24: int    raflag  = 0;            /* 'roll again' flag for recovered game */
                     25: int    rflag   = 0;            /* recovered game flag */
                     26: int    tflag   = 0;            /* cursor addressing flag */
                     27: int    iroll   = 0;            /* special flag for inputting rolls */
                     28: int    rfl     = 0;
                     29: 
                     30: 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.