src/chess/pawn.c

changeset 170
bde99d803caf
parent 169
9962f5d98764
--- a/src/chess/pawn.c	Thu Aug 06 14:45:55 2026 +0200
+++ b/src/chess/pawn.c	Thu Aug 06 16:11:37 2026 +0200
@@ -78,7 +78,8 @@
     }
 }
 
-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) {
     size_t count = 0;
     int rowdelta = c == WHITE ? 1 : -1;
     int promotionrow = c == WHITE ? 7 : 0;

mercurial