Add move_gen function
All checks were successful
Python tests (make) / test (push) Successful in 10s

This commit is contained in:
2025-08-17 12:17:51 -04:00
parent 362048d630
commit 5a25eba8f6
2 changed files with 39 additions and 2 deletions

View File

@@ -106,4 +106,12 @@ void create_knight_attack_cache();
void create_pawn_attack_cache();
void create_king_attack_cache();
void print_board();
int gen_pseudo_moves(struct Board *b, struct Move *out, bool captures_only);
void gen_white_pawn_quiet_pushes(const struct Board *board, struct Move *moves, int *count);
void gen_black_pawn_quiet_pushes(const struct Board *board, struct Move *moves, int *count);
void gen_white_pawn_push_promotions(const struct Board *board, struct Move *moves, int *count);
void gen_black_pawn_push_promotions(const struct Board *board, struct Move *moves, int *count);
void gen_white_pawn_captures(const struct Board *board, struct Move *moves, int *count);
void gen_black_pawn_captures(const struct Board *board, struct Move *moves, int *count);
void gen_white_pawn_capture_promotions(const struct Board *board, struct Move *moves, int *count);
void gen_black_pawn_capture_promotions(const struct Board *board, struct Move *moves, int *count);
int gen_pseudo_moves(const struct Board *board, struct Move *out, bool captures_only);