src/chess/rules.h

changeset 154
5336e985bd69
parent 153
bad2d6d4b861
equal deleted inserted replaced
153:bad2d6d4b861 154:5336e985bd69
34 #include <stdbool.h> 34 #include <stdbool.h>
35 35
36 #define VALID_MOVE_SYNTAX 0 36 #define VALID_MOVE_SYNTAX 0
37 #define VALID_MOVE_SEMANTICS 0 /* use same code for a success */ 37 #define VALID_MOVE_SEMANTICS 0 /* use same code for a success */
38 #define INVALID_MOVE_SYNTAX 1 38 #define INVALID_MOVE_SYNTAX 1
39 #define INVALID_POSITION 2 39 #define PIECE_NOT_FOUND 2
40 #define AMBIGUOUS_MOVE 3 40 #define AMBIGUOUS_MOVE 3
41 #define NEED_PROMOTION 4 41 #define NEED_PROMOTION 4
42 #define PIECE_PINNED 5 42 #define PIECE_PINNED 5
43 #define KING_IN_CHECK 6 43 #define KING_IN_CHECK 6
44 #define KING_MOVES_INTO_CHECK 7 44 #define KING_MOVES_INTO_CHECK 7

mercurial