mirror of
https://github.com/opelly27/Stockfish.git
synced 2026-05-20 06:17:49 +00:00
Add a comment and a FIXME
And fix indentation too. No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
+6
-3
@@ -1247,9 +1247,10 @@ namespace {
|
||||
|
||||
if (abs(ttValue) < VALUE_KNOWN_WIN)
|
||||
{
|
||||
Value excValue = search<NonPV>(pos, ss, ttValue - SingularExtensionMargin - 1, ttValue - SingularExtensionMargin, depth / 2, ply, false, threadID, move);
|
||||
Value b = ttValue - SingularExtensionMargin;
|
||||
Value v = search<NonPV>(pos, ss, b - 1, b, depth / 2, ply, false, threadID, move);
|
||||
|
||||
if (excValue < ttValue - SingularExtensionMargin)
|
||||
if (v < ttValue - SingularExtensionMargin)
|
||||
ext = OnePly;
|
||||
}
|
||||
}
|
||||
@@ -1274,7 +1275,7 @@ namespace {
|
||||
continue;
|
||||
|
||||
// Value based pruning
|
||||
Depth predictedDepth = newDepth - reduction<NonPV>(depth, moveCount); // We illogically ignore reduction condition depth >= 3*OnePly
|
||||
Depth predictedDepth = newDepth - reduction<NonPV>(depth, moveCount); // FIXME We illogically ignore reduction condition depth >= 3*OnePly
|
||||
futilityValueScaled = ss[ply].eval + futility_margin(predictedDepth, moveCount)
|
||||
+ H.gain(pos.piece_on(move_from(move)), move_to(move));
|
||||
|
||||
@@ -1320,6 +1321,8 @@ namespace {
|
||||
value = -search<NonPV>(pos, ss, -(alpha+1), -alpha, newDepth, ply+1, true, threadID);
|
||||
|
||||
// Step extra. pv search (only in PV nodes)
|
||||
// Search only for possible new PV nodes, if instead value >= beta then
|
||||
// parent node fails low with value <= alpha and tries another move.
|
||||
if (PvNode && value > alpha && value < beta)
|
||||
value = -search<PV>(pos, ss, -beta, -alpha, newDepth, ply+1, false, threadID);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user