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