121211Sdist /*
2*60746Sbostic  * Copyright (c) 1980, 1993
3*60746Sbostic  *	The Regents of the University of California.  All rights reserved.
433487Sbostic  *
542564Sbostic  * %sccs.include.redist.c%
621211Sdist  */
76759Srrh 
821211Sdist #ifndef lint
9*60746Sbostic static char sccsid[] = "@(#)init.c	8.1 (Berkeley) 05/31/93";
1033487Sbostic #endif /* not lint */
1121211Sdist 
126759Srrh #include <sgtty.h>
136759Srrh 
146759Srrh /*
156759Srrh  * variable initialization.
166759Srrh  */
176759Srrh 
186759Srrh 				/* name of executable object programs */
196759Srrh char	EXEC[] = "/usr/games/backgammon";
206759Srrh char	TEACH[] = "/usr/games/teachgammon";
216759Srrh 
226759Srrh int	pnum	= 2;		/* color of player:
236759Srrh 					-1 = white
246759Srrh 					 1 = red
256759Srrh 					 0 = both
266759Srrh 					 2 = not yet init'ed */
276759Srrh int	acnt	= 0;		/* length of args */
286759Srrh int	aflag	= 1;		/* flag to ask for rules or instructions */
296759Srrh int	bflag	= 0;		/* flag for automatic board printing */
306759Srrh int	cflag	= 0;		/* case conversion flag */
316759Srrh int	hflag	= 1;		/* flag for cleaning screen */
326759Srrh int	mflag	= 0;		/* backgammon flag */
336759Srrh int	raflag	= 0;		/* 'roll again' flag for recovered game */
346759Srrh int	rflag	= 0;		/* recovered game flag */
356759Srrh int	tflag	= 0;		/* cursor addressing flag */
366759Srrh int	iroll	= 0;		/* special flag for inputting rolls */
376759Srrh int	rfl	= 0;
386759Srrh 
396759Srrh char	*color[] = {"White","Red","white","red"};
40