src/chess/pawn.h

changeset 170
bde99d803caf
parent 169
9962f5d98764
--- a/src/chess/pawn.h	Thu Aug 06 14:45:55 2026 +0200
+++ b/src/chess/pawn.h	Thu Aug 06 16:11:37 2026 +0200
@@ -40,9 +40,10 @@
 bool pawn_isblocked(const GameState *gamestate, const Move *move);
 
 #define PAWN_MOVES_MAX 4
-size_t pawn_moves(GameState *gamestate, Color c, Row r, File f, Move *moves);
+size_t pawn_moves(const GameState *gamestate,
+        Color c, Row r, File f, Move *moves);
 #define pawn_moves_allowed(gamestate, color, row, file, moves) \
-    filter_moves_allowed(gamestate, color, row, file, moves, pawn_moves)
+        filter_moves_allowed(gamestate, color, row, file, moves, pawn_moves)
 
 #ifdef	__cplusplus
 }

mercurial