mirror of
https://github.com/opelly27/Stockfish.git
synced 2026-05-20 03:57:45 +00:00
Small trivial clean-ups, February 2021
Closes https://github.com/official-stockfish/Stockfish/pull/3329 No functional change
This commit is contained in:
committed by
Stéphane Nicolet
parent
b46813f9b7
commit
40cb0f076a
+7
-7
@@ -1025,12 +1025,12 @@ moves_loop: // When in check, search starts from here
|
||||
movedPiece = pos.moved_piece(move);
|
||||
givesCheck = pos.gives_check(move);
|
||||
|
||||
// Indicate PvNodes that will probably fail low if node was searched with non-PV search
|
||||
// Indicate PvNodes that will probably fail low if node was searched with non-PV search
|
||||
// at depth equal or greater to current depth and result of this search was far below alpha
|
||||
bool likelyFailLow = PvNode
|
||||
&& ttMove
|
||||
&& (tte->bound() & BOUND_UPPER)
|
||||
&& ttValue < alpha + 200 + 100 * depth
|
||||
bool likelyFailLow = PvNode
|
||||
&& ttMove
|
||||
&& (tte->bound() & BOUND_UPPER)
|
||||
&& ttValue < alpha + 200 + 100 * depth
|
||||
&& tte->depth() >= depth;
|
||||
|
||||
// Calculate new depth for this move
|
||||
@@ -1180,8 +1180,8 @@ moves_loop: // When in check, search starts from here
|
||||
if (th.marked())
|
||||
r++;
|
||||
|
||||
// Decrease reduction if position is or has been on the PV
|
||||
// and node is not likely to fail low (~10 Elo)
|
||||
// Decrease reduction if position is or has been on the PV
|
||||
// and node is not likely to fail low. (~10 Elo)
|
||||
if (ss->ttPv && !likelyFailLow)
|
||||
r -= 2;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user