mirror of
https://github.com/opelly27/Stockfish.git
synced 2026-05-20 06:17:49 +00:00
Simplify away singularQuietLMR
While at it, we also update the Elo estimate of reduction at non-PV nodes (source: https://tests.stockfishchess.org/tests/view/61acf97156fcf33bce7d6303 ) STC: LLR: 2.94 (-2.94,2.94) <-2.25,0.25> Total: 243632 W: 62874 L: 63022 D: 117736 Ptnml(0-2): 810, 28024, 64249, 27970, 763 https://tests.stockfishchess.org/tests/view/61b8b1b7dffbe89a35814c0d LTC: LLR: 2.93 (-2.94,2.94) <-2.25,0.25> Total: 91392 W: 23520 L: 23453 D: 44419 Ptnml(0-2): 51, 9568, 26387, 9643, 47 https://tests.stockfishchess.org/tests/view/61b97316dffbe89a35817da7 closes https://github.com/official-stockfish/Stockfish/pull/3854 bench: 4217785
This commit is contained in:
+3
-9
@@ -590,8 +590,7 @@ namespace {
|
|||||||
Depth extension, newDepth;
|
Depth extension, newDepth;
|
||||||
Value bestValue, value, ttValue, eval, maxValue, probCutBeta;
|
Value bestValue, value, ttValue, eval, maxValue, probCutBeta;
|
||||||
bool givesCheck, improving, didLMR, priorCapture;
|
bool givesCheck, improving, didLMR, priorCapture;
|
||||||
bool captureOrPromotion, doFullDepthSearch, moveCountPruning,
|
bool captureOrPromotion, doFullDepthSearch, moveCountPruning, ttCapture;
|
||||||
ttCapture, singularQuietLMR;
|
|
||||||
Piece movedPiece;
|
Piece movedPiece;
|
||||||
int moveCount, captureCount, quietCount, bestMoveCount, improvement;
|
int moveCount, captureCount, quietCount, bestMoveCount, improvement;
|
||||||
|
|
||||||
@@ -982,7 +981,7 @@ moves_loop: // When in check, search starts here
|
|||||||
ss->ply);
|
ss->ply);
|
||||||
|
|
||||||
value = bestValue;
|
value = bestValue;
|
||||||
singularQuietLMR = moveCountPruning = false;
|
moveCountPruning = false;
|
||||||
|
|
||||||
// Indicate PvNodes that will probably fail low if the node was searched
|
// Indicate PvNodes that will probably fail low if the node was searched
|
||||||
// at a depth equal or greater than the current depth, and the result of this search was a fail low.
|
// at a depth equal or greater than the current depth, and the result of this search was a fail low.
|
||||||
@@ -1106,7 +1105,6 @@ moves_loop: // When in check, search starts here
|
|||||||
if (value < singularBeta)
|
if (value < singularBeta)
|
||||||
{
|
{
|
||||||
extension = 1;
|
extension = 1;
|
||||||
singularQuietLMR = !ttCapture;
|
|
||||||
|
|
||||||
// Avoid search explosion by limiting the number of double extensions
|
// Avoid search explosion by limiting the number of double extensions
|
||||||
if ( !PvNode
|
if ( !PvNode
|
||||||
@@ -1190,7 +1188,7 @@ moves_loop: // When in check, search starts here
|
|||||||
&& !likelyFailLow)
|
&& !likelyFailLow)
|
||||||
r -= 2;
|
r -= 2;
|
||||||
|
|
||||||
// Increase reduction at non-PV nodes
|
// Increase reduction at non-PV nodes (~3 Elo)
|
||||||
if (!PvNode)
|
if (!PvNode)
|
||||||
r++;
|
r++;
|
||||||
|
|
||||||
@@ -1198,10 +1196,6 @@ moves_loop: // When in check, search starts here
|
|||||||
if ((ss-1)->moveCount > 13)
|
if ((ss-1)->moveCount > 13)
|
||||||
r--;
|
r--;
|
||||||
|
|
||||||
// Decrease reduction if ttMove has been singularly extended (~1 Elo)
|
|
||||||
if (singularQuietLMR)
|
|
||||||
r--;
|
|
||||||
|
|
||||||
// Increase reduction for cut nodes (~3 Elo)
|
// Increase reduction for cut nodes (~3 Elo)
|
||||||
if (cutNode && move != ss->killers[0])
|
if (cutNode && move != ss->killers[0])
|
||||||
r += 2;
|
r += 2;
|
||||||
|
|||||||
Reference in New Issue
Block a user