--- a/src/chess/king.h Sun Aug 02 15:19:47 2026 +0200 +++ b/src/chess/king.h Thu Aug 06 14:45:55 2026 +0200 @@ -40,6 +40,11 @@ bool king_chkrules(const GameState *gamestate, const Move *move); bool king_isblocked(const GameState *gamestate, const Move *move); +#define KING_MOVES_MAX 8 +size_t king_moves(GameState *gamestate, Color c, Row r, File f, Move *moves); +#define king_moves_allowed(gamestate, color, row, file, moves) \ + filter_moves_allowed(gamestate, color, row, file, moves, king_moves) + #ifdef __cplusplus } #endif