--- a/src/chess/rook.h Thu Aug 06 14:45:55 2026 +0200 +++ b/src/chess/rook.h Thu Aug 06 16:11:37 2026 +0200 @@ -40,9 +40,10 @@ 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); +size_t rook_moves(const 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) + filter_moves_allowed(gamestate, color, row, file, moves, rook_moves) #ifdef __cplusplus }