src/chess/king.h

changeset 195
27d02ccb0cef
parent 194
619f07c95894
equal deleted inserted replaced
194:619f07c95894 195:27d02ccb0cef
40 bool king_chkrules(const GameState *gamestate, const Move *move); 40 bool king_chkrules(const GameState *gamestate, const Move *move);
41 bool king_isblocked(const GameState *gamestate, const Move *move); 41 bool king_isblocked(const GameState *gamestate, const Move *move);
42 42
43 #define KING_MOVES_MAX 8 43 #define KING_MOVES_MAX 8
44 size_t king_moves(const GameState *gamestate, 44 size_t king_moves(const GameState *gamestate,
45 Color c, Rank r, File f, Move *moves); 45 Color c, File f, Rank r, Move *moves);
46 #define king_moves_allowed(gamestate, color, rank, file, moves) \ 46 #define king_moves_allowed(gamestate, color, file, rank, moves) \
47 filter_moves_allowed(gamestate, color, rank, file, moves, king_moves) 47 filter_moves_allowed(gamestate, color, file, rank, moves, king_moves)
48 48
49 #ifdef __cplusplus 49 #ifdef __cplusplus
50 } 50 }
51 #endif 51 #endif
52 52

mercurial