mirror of
https://github.com/opelly27/Stockfish.git
synced 2026-05-20 03:57:45 +00:00
Join conditions for move sorting heuristics
closes https://github.com/official-stockfish/Stockfish/pull/5078 No functional change.
This commit is contained in:
committed by
Joost VandeVondele
parent
0c22d5bb1a
commit
f77eddfa2f
+1
-4
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user