Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/search.c
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ int alpha_beta(Search *search, Board *board, int depth, int ply, int alpha, int
int root_search(Search *search, Board *board, int depth, int ply, int alpha, int beta, Move *result) {
Undo undo;
Move moves[MAX_MOVES];
int count = gen_moves(board, moves);
int count = gen_legal_moves(board, moves);
sort_moves(search, board, moves, count);
Move *best = NULL;
for (int i = 0; i < count; i++) {
Expand Down