Join conditions for move sorting heuristics

closes https://github.com/official-stockfish/Stockfish/pull/5078

No functional change.
This commit is contained in:
Gahtan Nahdi
2024-02-27 19:27:40 +07:00
committed by Joost VandeVondele
parent 0c22d5bb1a
commit f77eddfa2f
+1 -4
View File
@@ -607,9 +607,7 @@ Value Search::Worker::search(
&& (tte->bound() & (ttValue >= beta ? BOUND_LOWER : BOUND_UPPER)))
{
// If ttMove is quiet, update move sorting heuristics on TT hit (~2 Elo)
if (ttMove)
{
if (ttValue >= beta)
if (ttMove && ttValue >= beta)
{
// Bonus for a quiet ttMove that fails high (~2 Elo)
if (!ttCapture)
@@ -621,7 +619,6 @@ Value Search::Worker::search(
update_continuation_histories(ss - 1, pos.piece_on(prevSq), prevSq,
-stat_malus(depth + 1));
}
}
// Partial workaround for the graph history interaction problem
// For high rule50 counts don't produce transposition table cutoffs.