diff -r 9962f5d98764 -r bde99d803caf src/chess/king.h --- a/src/chess/king.h Thu Aug 06 14:45:55 2026 +0200 +++ b/src/chess/king.h Thu Aug 06 16:11:37 2026 +0200 @@ -41,9 +41,10 @@ bool king_isblocked(const GameState *gamestate, const Move *move); #define KING_MOVES_MAX 8 -size_t king_moves(GameState *gamestate, Color c, Row r, File f, Move *moves); +size_t king_moves(const GameState *gamestate, + Color c, Row r, File f, Move *moves); #define king_moves_allowed(gamestate, color, row, file, moves) \ - filter_moves_allowed(gamestate, color, row, file, moves, king_moves) + filter_moves_allowed(gamestate, color, row, file, moves, king_moves) #ifdef __cplusplus }