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