mirror of
https://github.com/official-stockfish/Stockfish.git
synced 2026-07-22 12:47:08 +00:00
Simplify correction update condition
Passed non-regression STC LLR: 2.96 (-2.94,2.94) <-1.75,0.25> Total: 95136 W: 24722 L: 24564 D: 45850 Ptnml(0-2): 307, 11139, 24522, 11289, 311 https://tests.stockfishchess.org/tests/view/68e5034ea017f472e763dc5a Passed non-regression LTC LLR: 2.96 (-2.94,2.94) <-1.75,0.25> Total: 256440 W: 65854 L: 65873 D: 124713 Ptnml(0-2): 144, 28287, 71375, 28272, 142 https://tests.stockfishchess.org/tests/view/68e71ae4a017f472e763e291 closes https://github.com/official-stockfish/Stockfish/pull/6375 bench 2216361
This commit is contained in:
committed by
Joost VandeVondele
parent
013d42914f
commit
c9a2aff485
+3
-3
@@ -1443,10 +1443,10 @@ moves_loop: // When in check, search starts here
|
|||||||
moveCount != 0 ? depth : std::min(MAX_PLY - 1, depth + 6), bestMove,
|
moveCount != 0 ? depth : std::min(MAX_PLY - 1, depth + 6), bestMove,
|
||||||
unadjustedStaticEval, tt.generation());
|
unadjustedStaticEval, tt.generation());
|
||||||
|
|
||||||
// Adjust correction history
|
// Adjust correction history if the best move is not a capture
|
||||||
|
// and the error direction matches whether we are above/below bounds.
|
||||||
if (!ss->inCheck && !(bestMove && pos.capture(bestMove))
|
if (!ss->inCheck && !(bestMove && pos.capture(bestMove))
|
||||||
&& ((bestValue < ss->staticEval && bestValue < beta) // negative correction & no fail high
|
&& (bestValue < ss->staticEval) == !bestMove)
|
||||||
|| (bestValue > ss->staticEval && bestMove))) // positive correction & no fail low
|
|
||||||
{
|
{
|
||||||
auto bonus =
|
auto bonus =
|
||||||
std::clamp(int(bestValue - ss->staticEval) * depth / (8 + (bestValue > ss->staticEval)),
|
std::clamp(int(bestValue - ss->staticEval) * depth / (8 + (bestValue > ss->staticEval)),
|
||||||
|
|||||||
Reference in New Issue
Block a user