1 /*- 2 * Copyright (c) 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * Barry Brachman. 7 * 8 * %sccs.include.redist.c% 9 * 10 * @(#)bog.h 8.1 (Berkeley) 06/11/93 11 */ 12 13 #define LOADDICT 1 /* Load the dictionary for speed */ 14 15 /* 16 * Locations for the dictionary (generated by mkdict), 17 * index (generated by mkindex), and helpfile 18 */ 19 #define DICT "/usr/share/games/boggle/dictionary" 20 #define DICTINDEX "/usr/share/games/boggle/dictindex" 21 #define HELPFILE "/usr/share/games/boggle/helpfile" 22 23 /* 24 * The theoretical maximum for MAXWORDLEN is ('a' - 1) == 96 25 */ 26 #define MAXWORDLEN 40 /* Maximum word length */ 27 #define MAXPWORDS 200 /* Maximum number of player's words */ 28 #define MAXMWORDS 200 /* Maximum number of machine's words */ 29 #define MAXPSPACE 2000 /* Space for player's words */ 30 #define MAXMSPACE 4000 /* Space for machines's words */ 31 32 #define MAXCOLS 20 33 34 /* 35 * The following determine the screen layout 36 */ 37 #define PROMPT_COL 20 38 #define PROMPT_LINE 2 39 40 #define BOARD_COL 0 41 #define BOARD_LINE 0 42 43 #define SCORE_COL 20 44 #define SCORE_LINE 0 45 46 #define LIST_COL 0 47 #define LIST_LINE 10 48 49 #define TIMER_COL 20 50 #define TIMER_LINE 2 51 52 /* 53 * Internal dictionary index 54 * Initialized from the file created by mkindex 55 */ 56 struct dictindex { 57 long start; 58 long length; 59 }; 60