--- a/src/chess/pawn.h Sun Aug 02 15:19:47 2026 +0200 +++ b/src/chess/pawn.h Thu Aug 06 14:45:55 2026 +0200 @@ -39,6 +39,11 @@ bool pawn_chkrules(const GameState *gamestate, const Move *move); 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); +#define pawn_moves_allowed(gamestate, color, row, file, moves) \ + filter_moves_allowed(gamestate, color, row, file, moves, pawn_moves) + #ifdef __cplusplus } #endif