--- a/src/chess/knight.c Thu Aug 06 14:45:55 2026 +0200 +++ b/src/chess/knight.c Thu Aug 06 16:11:37 2026 +0200 @@ -38,7 +38,8 @@ return (dx == 2 && dy == 1) || (dx == 1 && dy == 2); } -size_t knight_moves(GameState *gamestate, Color c, Row r, File f, Move *moves) { +size_t knight_moves(const GameState *gamestate, + Color c, Row r, File f, Move *moves) { size_t count = 0; const int offsets[8][2] = {