1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-04-29 16:23:09 +00:00

Reword singular extension comments

Should be more stick to original definition (Hsu, Campbell)

No functional change.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
Marco Costalba 2010-07-06 10:08:35 +02:00
parent 8689ff7d03
commit aa172032c4

View file

@ -1280,9 +1280,10 @@ namespace {
// Step 11. Decide the new search depth // Step 11. Decide the new search depth
ext = extension<PvNode>(pos, move, captureOrPromotion, moveIsCheck, singleEvasion, mateThreat, &dangerous); ext = extension<PvNode>(pos, move, captureOrPromotion, moveIsCheck, singleEvasion, mateThreat, &dangerous);
// Singular extension search. We extend the TT move if its value is much better than // Singular extension search. If all moves but one fail low on a search of (alpha-s, beta-s),
// its siblings. To verify this we do a reduced search on all the other moves but the // and just one fails high on (alpha, beta), then that move is singular and should be extended.
// ttMove, if result is lower then ttValue minus a margin then we extend ttMove. // To verify this we do a reduced search on all the other moves but the ttMove, if result is
// lower then ttValue minus a margin then we extend ttMove.
if ( singularExtensionNode if ( singularExtensionNode
&& move == tte->move() && move == tte->move()
&& ext < OnePly) && ext < OnePly)
@ -1297,7 +1298,7 @@ namespace {
Value v = search<NonPV>(pos, ss, b - 1, b, depth / 2, ply); Value v = search<NonPV>(pos, ss, b - 1, b, depth / 2, ply);
ss->skipNullMove = false; ss->skipNullMove = false;
ss->excludedMove = MOVE_NONE; ss->excludedMove = MOVE_NONE;
if (v < ttValue - SingularExtensionMargin) if (v < b)
ext = OnePly; ext = OnePly;
} }
} }