121211Sdist /* 221211Sdist * Copyright (c) 1980 Regents of the University of California. 3*33487Sbostic * All rights reserved. 4*33487Sbostic * 5*33487Sbostic * Redistribution and use in source and binary forms are permitted 6*33487Sbostic * provided that this notice is preserved and that due credit is given 7*33487Sbostic * to the University of California at Berkeley. The name of the University 8*33487Sbostic * may not be used to endorse or promote products derived from this 9*33487Sbostic * software without specific prior written permission. This software 10*33487Sbostic * is provided ``as is'' without express or implied warranty. 1121211Sdist */ 126759Srrh 1321211Sdist #ifndef lint 14*33487Sbostic static char sccsid[] = "@(#)init.c 5.2 (Berkeley) 02/16/88"; 15*33487Sbostic #endif /* not lint */ 1621211Sdist 176759Srrh #include <sgtty.h> 186759Srrh 196759Srrh /* 206759Srrh * variable initialization. 216759Srrh */ 226759Srrh 236759Srrh /* name of executable object programs */ 246759Srrh char EXEC[] = "/usr/games/backgammon"; 256759Srrh char TEACH[] = "/usr/games/teachgammon"; 266759Srrh 276759Srrh int pnum = 2; /* color of player: 286759Srrh -1 = white 296759Srrh 1 = red 306759Srrh 0 = both 316759Srrh 2 = not yet init'ed */ 326759Srrh int acnt = 0; /* length of args */ 336759Srrh int aflag = 1; /* flag to ask for rules or instructions */ 346759Srrh int bflag = 0; /* flag for automatic board printing */ 356759Srrh int cflag = 0; /* case conversion flag */ 366759Srrh int hflag = 1; /* flag for cleaning screen */ 376759Srrh int mflag = 0; /* backgammon flag */ 386759Srrh int raflag = 0; /* 'roll again' flag for recovered game */ 396759Srrh int rflag = 0; /* recovered game flag */ 406759Srrh int tflag = 0; /* cursor addressing flag */ 416759Srrh int iroll = 0; /* special flag for inputting rolls */ 426759Srrh int rfl = 0; 436759Srrh 446759Srrh char *color[] = {"White","Red","white","red"}; 45