src/chess/knight.h

changeset 170
bde99d803caf
parent 169
9962f5d98764
--- a/src/chess/knight.h	Thu Aug 06 14:45:55 2026 +0200
+++ b/src/chess/knight.h	Thu Aug 06 16:11:37 2026 +0200
@@ -40,9 +40,10 @@
 #define knight_isblocked(gs,m) false
 
 #define KNIGHT_MOVES_MAX 8
-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);
 #define knight_moves_allowed(gamestate, color, row, file, moves) \
-    filter_moves_allowed(gamestate, color, row, file, moves, knight_moves)
+        filter_moves_allowed(gamestate, color, row, file, moves, knight_moves)
 
 #ifdef	__cplusplus
 }

mercurial