20-add-negamax-eval-function (#31)
All checks were successful
Python tests (make) / test (push) Successful in 12s

Reviewed-on: #31
Co-authored-by: Josh <josh@joshuaschuett.com>
Co-committed-by: Josh <josh@joshuaschuett.com>
This commit is contained in:
2025-08-26 00:28:03 +00:00
committed by Josh
parent 6005741b10
commit 27d0f1b6e6
12 changed files with 622 additions and 24 deletions

4
engine/include/ai.h Normal file
View File

@@ -0,0 +1,4 @@
#include "bitboard.h"
int ai_find_best_move_with_window(struct Board *b, int depth, int window_cp, struct Move *best_out);
int ai_play(struct Board *b, int depth);

View File

@@ -114,4 +114,7 @@ void gen_white_pawn_captures(const struct Board *board, struct Move *moves, int
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);
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

@@ -1 +1,2 @@
int load_fen();
void board_to_fen(struct Board *board, char *out, size_t out_sz);