1 /* 2 * Copyright (c) 1980, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * %sccs.include.redist.c% 6 */ 7 8 #ifndef lint 9 static char sccsid[] = "@(#)init.c 8.1 (Berkeley) 05/31/93"; 10 #endif /* not lint */ 11 12 #include <sgtty.h> 13 14 /* 15 * variable initialization. 16 */ 17 18 /* name of executable object programs */ 19 char EXEC[] = "/usr/games/backgammon"; 20 char TEACH[] = "/usr/games/teachgammon"; 21 22 int pnum = 2; /* color of player: 23 -1 = white 24 1 = red 25 0 = both 26 2 = not yet init'ed */ 27 int acnt = 0; /* length of args */ 28 int aflag = 1; /* flag to ask for rules or instructions */ 29 int bflag = 0; /* flag for automatic board printing */ 30 int cflag = 0; /* case conversion flag */ 31 int hflag = 1; /* flag for cleaning screen */ 32 int mflag = 0; /* backgammon flag */ 33 int raflag = 0; /* 'roll again' flag for recovered game */ 34 int rflag = 0; /* recovered game flag */ 35 int tflag = 0; /* cursor addressing flag */ 36 int iroll = 0; /* special flag for inputting rolls */ 37 int rfl = 0; 38 39 char *color[] = {"White","Red","white","red"}; 40