src/chess/rook.h

changeset 195
27d02ccb0cef
parent 194
619f07c95894
equal deleted inserted replaced
194:619f07c95894 195:27d02ccb0cef
39 bool rook_chkrules(const Move *move); 39 bool rook_chkrules(const Move *move);
40 bool rook_isblocked(const GameState *gamestate, const Move *move); 40 bool rook_isblocked(const GameState *gamestate, const Move *move);
41 41
42 #define ROOK_MOVES_MAX 14 42 #define ROOK_MOVES_MAX 14
43 size_t rook_moves(const GameState *gamestate, 43 size_t rook_moves(const GameState *gamestate,
44 Color c, Rank r, File f, Move *moves); 44 Color c, File f, Rank r, Move *moves);
45 #define rook_moves_allowed(gamestate, color, rank, file, moves) \ 45 #define rook_moves_allowed(gamestate, color, file, rank, moves) \
46 filter_moves_allowed(gamestate, color, rank, file, moves, rook_moves) 46 filter_moves_allowed(gamestate, color, file, rank, moves, rook_moves)
47 47
48 #ifdef __cplusplus 48 #ifdef __cplusplus
49 } 49 }
50 #endif 50 #endif
51 51

mercurial