src/chess/rook.h

changeset 169
9962f5d98764
parent 163
2a6d83f4677e
child 170
bde99d803caf
equal deleted inserted replaced
168:663676cfef6e 169:9962f5d98764
37 #endif 37 #endif
38 38
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
43 size_t rook_moves(GameState *gamestate, Color c, Row r, File f, Move *moves);
44 #define rook_moves_allowed(gamestate, color, row, file, moves) \
45 filter_moves_allowed(gamestate, color, row, file, moves, rook_moves)
46
42 #ifdef __cplusplus 47 #ifdef __cplusplus
43 } 48 }
44 #endif 49 #endif
45 50
46 #endif /* ROOK_H */ 51 #endif /* ROOK_H */

mercurial