c98763478f3105dfd8d4a6da9e70e057d4f41375
[gnushogi.git] / src / book.h
1 /*
2  * book.h - C source for GNU SHOGI
3  *
4  * Copyright (c) 1993, 1994, 1995 Matthias Mutz
5  *
6  * GNU SHOGI is based on GNU CHESS
7  *
8  * Copyright (c) 1988,1989,1990 John Stanback Copyright (c) 1992 Free Software
9  * Foundation
10  *
11  * This file is part of GNU SHOGI.
12  *
13  * GNU Shogi is free software; you can redistribute it and/or modify it under
14  * the terms of the GNU General Public License as published by the Free
15  * Software Foundation; either version 1, or (at your option) any later
16  * version.
17  *
18  * GNU Shogi is distributed in the hope that it will be useful, but WITHOUT ANY
19  * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
20  * FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
21  * details.
22  *
23  * You should have received a copy of the GNU General Public License along with
24  * GNU Shogi; see the file COPYING.  If not, write to the Free Software
25  * Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
26  */
27  
28
29
30
31 struct gdxadmin {
32   ULONG bookcount;
33   ULONG booksize;
34   ULONG maxoffset;
35 };
36
37 extern struct gdxadmin B;
38
39
40 #define GOODMOVE 0x1000
41 #define BADMOVE  0x0100
42 #define LASTMOVE 0x0010
43
44 struct gdxdata
45 {
46   ULONG  hashbd;
47   USHORT hashkey;
48   USHORT bmove;
49   USHORT flags; /* flags BADMOVE, GOODMOVE,  LASTMOVE */
50   USHORT hint;
51   USHORT count;
52 };
53
54
55 #define sizeof_gdxadmin sizeof(struct gdxadmin)
56 #define sizeof_gdxdata sizeof(struct gdxdata)
57
58
59
60