diff -r 663676cfef6e -r 9962f5d98764 src/chess/rook.h --- a/src/chess/rook.h Sun Aug 02 15:19:47 2026 +0200 +++ b/src/chess/rook.h Thu Aug 06 14:45:55 2026 +0200 @@ -39,6 +39,11 @@ bool rook_chkrules(const Move *move); bool rook_isblocked(const GameState *gamestate, const Move *move); +#define ROOK_MOVES_MAX 14 +size_t rook_moves(GameState *gamestate, Color c, Row r, File f, Move *moves); +#define rook_moves_allowed(gamestate, color, row, file, moves) \ + filter_moves_allowed(gamestate, color, row, file, moves, rook_moves) + #ifdef __cplusplus } #endif