src/chess/bishop.c

changeset 170
bde99d803caf
parent 169
9962f5d98764
--- a/src/chess/bishop.c	Thu Aug 06 14:45:55 2026 +0200
+++ b/src/chess/bishop.c	Thu Aug 06 16:11:37 2026 +0200
@@ -53,7 +53,8 @@
     return false;
 }
 
-size_t bishop_moves(GameState *gamestate, Color c, Row r, File f, Move *moves) {
+size_t bishop_moves(const GameState *gamestate,
+        Color c, Row r, File f, Move *moves) {
 
     size_t count = 0;
     const int directions[4][2] = {

mercurial