Remove unused function and add missing header prototypes
All checks were successful
Python tests (make) / test (push) Successful in 11s

This commit is contained in:
2025-08-25 13:01:36 -04:00
parent 4fc982eac2
commit c82c50e6dd
2 changed files with 4 additions and 9 deletions

View File

@@ -115,3 +115,6 @@ void gen_black_pawn_captures(const struct Board *board, struct Move *moves, int
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);
int get_legal_moves(struct Board *board, struct Move *out);
bool in_check(const struct Board *board, enum Color side);
bool apply_move_on_copy(struct Board *in, struct Board *out, struct Move m);

View File

@@ -113,11 +113,3 @@ int ai_find_best_move_with_window(struct Board *board, int depth, int window_cp,
*best_out = moves[pick];
return 1;
}
int ai_play(struct Board *b, int depth) {
struct Move m;
struct Board after;
if (!apply_move_on_copy(b, &after, m)) return 0;
*b = after;
return 1;
}