Skip to content

Commit

Permalink
Fix incorrect upper bound score
Browse files Browse the repository at this point in the history
  • Loading branch information
Tearth committed Jan 22, 2025
1 parent 00dd84b commit b3164da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/engine/search/runner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ fn run_internal<const ROOT: bool, const PV: bool>(
TTableScoreType::EXACT_SCORE
};

context.ttable.add(context.board.state.hash, alpha, best_move, depth, ply, score_type, context.search_id);
context.ttable.add(context.board.state.hash, best_score, best_move, depth, ply, score_type, context.search_id);
dev!(context.stats.tt_added += 1);
}

Expand Down

0 comments on commit b3164da

Please sign in to comment.