mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-20 09:06:45 +08:00
Merge exclusion search conditions
No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
@@ -874,9 +874,8 @@ split_point_start: // At split points actual search starts from here
|
|||||||
if ( singularExtensionNode
|
if ( singularExtensionNode
|
||||||
&& !ext
|
&& !ext
|
||||||
&& move == ttMove
|
&& move == ttMove
|
||||||
&& pos.pl_move_is_legal(move, ci.pinned))
|
&& pos.pl_move_is_legal(move, ci.pinned)
|
||||||
{
|
&& abs(ttValue) < VALUE_KNOWN_WIN)
|
||||||
if (abs(ttValue) < VALUE_KNOWN_WIN)
|
|
||||||
{
|
{
|
||||||
Value rBeta = ttValue - int(depth);
|
Value rBeta = ttValue - int(depth);
|
||||||
ss->excludedMove = move;
|
ss->excludedMove = move;
|
||||||
@@ -884,10 +883,10 @@ split_point_start: // At split points actual search starts from here
|
|||||||
value = search<NonPV>(pos, ss, rBeta - 1, rBeta, depth / 2);
|
value = search<NonPV>(pos, ss, rBeta - 1, rBeta, depth / 2);
|
||||||
ss->skipNullMove = false;
|
ss->skipNullMove = false;
|
||||||
ss->excludedMove = MOVE_NONE;
|
ss->excludedMove = MOVE_NONE;
|
||||||
|
|
||||||
if (value < rBeta)
|
if (value < rBeta)
|
||||||
ext = ONE_PLY;
|
ext = ONE_PLY;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
// Update current move (this must be done after singular extension search)
|
// Update current move (this must be done after singular extension search)
|
||||||
newDepth = depth - ONE_PLY + ext;
|
newDepth = depth - ONE_PLY + ext;
|
||||||
|
|||||||
Reference in New Issue
Block a user