--- a/src/chess/king.c Thu Aug 06 14:45:55 2026 +0200 +++ b/src/chess/king.c Thu Aug 06 16:11:37 2026 +0200 @@ -88,7 +88,8 @@ return blocked; } -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) { size_t count = 0; Piece king = mkpiece(KING, c);