src/chess/bishop.h

changeset 169
9962f5d98764
parent 163
2a6d83f4677e
child 170
bde99d803caf
--- a/src/chess/bishop.h	Sun Aug 02 15:19:47 2026 +0200
+++ b/src/chess/bishop.h	Thu Aug 06 14:45:55 2026 +0200
@@ -39,6 +39,11 @@
 bool bishop_chkrules(const Move *move);
 bool bishop_isblocked(const GameState *gamestate, const Move *move);
 
+#define BISHOP_MOVES_MAX 13
+size_t bishop_moves(GameState *gamestate, Color c, Row r, File f, Move *moves);
+#define bishop_moves_allowed(gamestate, color, row, file, moves) \
+    filter_moves_allowed(gamestate, color, row, file, moves, bishop_moves)
+
 #ifdef	__cplusplus
 }
 #endif

mercurial