--- a/src/chess/king.h Thu Jul 30 18:34:15 2026 +0200 +++ b/src/chess/king.h Thu Jul 30 19:17:38 2026 +0200 @@ -37,8 +37,8 @@ extern "C" { #endif -bool king_chkrules(GameState *gamestate, Move *move); -bool king_isblocked(GameState *gamestate, Move *move); +bool king_chkrules(const GameState *gamestate, const Move *move); +bool king_isblocked(const GameState *gamestate, const Move *move); #ifdef __cplusplus }