X-Git-Url: http://winboard.nl/cgi-bin?p=capablanca.git;a=blobdiff_plain;f=lasker-2.2.3%2Fsrc%2Fmovecheck.h;h=bc06086b3e2f252844276c0b2cbc53961ba88d3d;hp=8033261752c6895ebeeace32e0de189068676a2b;hb=fc8a38817986f2ad7a034db0d413762e509a7cac;hpb=76f1e81b3426b94e1d80c9daa309f78045e5335b diff --git a/lasker-2.2.3/src/movecheck.h b/lasker-2.2.3/src/movecheck.h old mode 100644 new mode 100755 index 8033261..bc06086 --- a/lasker-2.2.3/src/movecheck.h +++ b/lasker-2.2.3/src/movecheck.h @@ -1,41 +1,42 @@ -/* - Copyright (c) 1993 Richard V. Nash. - Copyright (c) 2000 Dan Papasian - Copyright (C) Andrew Tridgell 2002 - - This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. -*/ - -#ifndef _MOVECHECK_H -#define _MOVECHECK_H - -#define MOVE_OK 0 -#define MOVE_ILLEGAL 1 -#define MOVE_STALEMATE 2 -#define MOVE_CHECKMATE 3 -#define MOVE_AMBIGUOUS 4 -#define MOVE_NOMATERIAL 5 - -#define MS_NOTMOVE 0 -#define MS_COMP 1 -#define MS_COMPDASH 2 -#define MS_ALG 3 -#define MS_KCASTLE 4 -#define MS_QCASTLE 5 - -#define isrank(c) (((c) <= '8') && ((c) >= '1')) -#define isfile(c) (((c) >= 'a') && ((c) <= 'h')) - -#endif /* _MOVECHECK_H */ +/* + Copyright (c) 1993 Richard V. Nash. + Copyright (c) 2000 Dan Papasian + Copyright (C) Andrew Tridgell 2002 + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. +*/ + +#ifndef _MOVECHECK_H +#define _MOVECHECK_H + +#define MOVE_OK 0 +#define MOVE_ILLEGAL 1 +#define MOVE_STALEMATE 2 +#define MOVE_CHECKMATE 3 +#define MOVE_AMBIGUOUS 4 +#define MOVE_NOMATERIAL 5 +#define MOVE_BARE 6 + +#define MS_NOTMOVE 0 +#define MS_COMP 1 +#define MS_COMPDASH 2 +#define MS_ALG 3 +#define MS_KCASTLE 4 +#define MS_QCASTLE 5 + +#define isrank(c) (((c) <= '9') && ((c) >= '0')) +#define isfile(c) (((c) >= 'a') && ((c) <= 'l')) + +#endif /* _MOVECHECK_H */