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

Early stop: retire redundant Rml.size() == 1 case

In case there is only 1 legal move we will stop the
search at depth 10 anyway because the exclusion search
probe will fail low.

No functional change.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
Marco Costalba 2011-11-19 11:19:12 +01:00
parent 35fa4fc71f
commit c56a7ee803

View file

@ -651,11 +651,6 @@ namespace {
// Check for some early stop condition
if (!StopRequest && Limits.useTimeManagement())
{
// Stop search early if there is only a single legal move. Search to
// some depth anyway to get a proper score.
if (Rml.size() == 1 && depth >= 7)
StopRequest = true;
// Take in account some extra time if the best move has changed
if (depth > 4 && depth < 50)
TimeMgr.pv_instability(bestMoveChanges[depth], bestMoveChanges[depth - 1]);