Check-in modifications made by HGM so far
[capablanca.git] / lasker-2.2.3 / src / movecheck.h
1 /*\r
2    Copyright (c) 1993 Richard V. Nash.\r
3    Copyright (c) 2000 Dan Papasian\r
4    Copyright (C) Andrew Tridgell 2002\r
5    \r
6    This program is free software; you can redistribute it and/or modify\r
7    it under the terms of the GNU General Public License as published by\r
8    the Free Software Foundation; either version 2 of the License, or\r
9    (at your option) any later version.\r
10    \r
11    This program is distributed in the hope that it will be useful,\r
12    but WITHOUT ANY WARRANTY; without even the implied warranty of\r
13    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r
14    GNU General Public License for more details.\r
15    \r
16    You should have received a copy of the GNU General Public License\r
17    along with this program; if not, write to the Free Software\r
18    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.\r
19 */\r
20 \r
21 #ifndef _MOVECHECK_H\r
22 #define _MOVECHECK_H\r
23 \r
24 #define MOVE_OK 0\r
25 #define MOVE_ILLEGAL 1\r
26 #define MOVE_STALEMATE 2\r
27 #define MOVE_CHECKMATE 3\r
28 #define MOVE_AMBIGUOUS 4\r
29 #define MOVE_NOMATERIAL 5\r
30 #define MOVE_BARE 6\r
31 \r
32 #define MS_NOTMOVE 0\r
33 #define MS_COMP 1\r
34 #define MS_COMPDASH 2\r
35 #define MS_ALG 3\r
36 #define MS_KCASTLE 4\r
37 #define MS_QCASTLE 5\r
38 \r
39 #define isrank(c) (((c) <= '9') && ((c) >= '0'))\r
40 #define isfile(c) (((c) >= 'a') && ((c) <= 'l'))\r
41 \r
42 #endif /* _MOVECHECK_H */\r