1 /*
2  * Copyright (c) 1980 Regents of the University of California.
3  * All rights reserved.
4  *
5  * Redistribution and use in source and binary forms are permitted
6  * provided that the above copyright notice and this paragraph are
7  * duplicated in all such forms and that any documentation,
8  * advertising materials, and other materials related to such
9  * distribution and use acknowledge that the software was developed
10  * by the University of California, Berkeley.  The name of the
11  * University may not be used to endorse or promote products derived
12  * from this software without specific prior written permission.
13  * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
14  * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
15  * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
16  */
17 
18 #ifndef lint
19 static char sccsid[] = "@(#)init.c	5.3 (Berkeley) 06/18/88";
20 #endif /* not lint */
21 
22 #include <sgtty.h>
23 
24 /*
25  * variable initialization.
26  */
27 
28 				/* name of executable object programs */
29 char	EXEC[] = "/usr/games/backgammon";
30 char	TEACH[] = "/usr/games/teachgammon";
31 
32 int	pnum	= 2;		/* color of player:
33 					-1 = white
34 					 1 = red
35 					 0 = both
36 					 2 = not yet init'ed */
37 int	acnt	= 0;		/* length of args */
38 int	aflag	= 1;		/* flag to ask for rules or instructions */
39 int	bflag	= 0;		/* flag for automatic board printing */
40 int	cflag	= 0;		/* case conversion flag */
41 int	hflag	= 1;		/* flag for cleaning screen */
42 int	mflag	= 0;		/* backgammon flag */
43 int	raflag	= 0;		/* 'roll again' flag for recovered game */
44 int	rflag	= 0;		/* recovered game flag */
45 int	tflag	= 0;		/* cursor addressing flag */
46 int	iroll	= 0;		/* special flag for inputting rolls */
47 int	rfl	= 0;
48 
49 char	*color[] = {"White","Red","white","red"};
50