xref: /original-bsd/games/boggle/boggle/bog.h (revision e8eb2810)
1 /* vi: set tabstop=4 : */
2 
3 /*
4  * Configuration
5  */
6 
7 #define BSD42			1	/* BSD 4.[23] */
8 /* #define ATARI			1	/* Atari ST */
9 /* #define SYSV				1	/* System V */
10 
11 /*
12  * If you don't have random() and srandom() #define what you have
13  */
14 /* #define random			lrand48	/* Sys V */
15 /* #define srandom			srand48	/* Sys V */
16 
17 /* #define random			rand	/* Not good but generally available */
18 /* #define srandom(x)		srand((int) x)	/* */
19 
20 #define TIMER			1	/* Use tty polling (see timer.c) */
21 #define LOADDICT		1	/* Load the dictionary for speed */
22 
23 /*
24  * Locations for the dictionary (generated by mkdict), index (generated by
25  * mkindex), and helpfile
26  */
27 #define DICT			"/grads/brachman/lib/bog/dict"
28 #define DICTINDEX		"/grads/brachman/lib/bog/dictindex"
29 #define HELPFILE		"/grads/brachman/lib/bog/helpfile"
30 
31 /*
32  * The theoretical maximum for MAXWORDLEN is ('a' - 1) == 96
33  */
34 #define MAXWORDLEN		40		/* Maximum word length */
35 #define MAXPWORDS		200		/* Maximum number of player's words */
36 #define MAXMWORDS		200		/* Maximum number of machine's words */
37 #define MAXPSPACE		2000	/* Space for player's words */
38 #define MAXMSPACE		4000	/* Space for machines's words */
39 
40 #define MAXCOLS			20
41 
42 /*
43  * The following determine the screen layout
44  */
45 #define PROMPT_COL		20
46 #define PROMPT_LINE		2
47 
48 #define BOARD_COL		0
49 #define BOARD_LINE		0
50 
51 #define SCORE_COL		20
52 #define SCORE_LINE		0
53 
54 #define LIST_COL		0
55 #define LIST_LINE		10
56 
57 #define TIMER_COL		20
58 #define TIMER_LINE		2
59 
60 /*
61  * Internal dictionary index
62  * Initialized from the file created by mkindex
63  */
64 struct dictindex {
65     long start;
66 	long length;
67 };
68 
69