]> git.sesse.net Git - stockfish/commitdiff
Early stop: retire redundant Rml.size() == 1 case
authorMarco Costalba <mcostalba@gmail.com>
Sat, 19 Nov 2011 10:19:12 +0000 (11:19 +0100)
committerMarco Costalba <mcostalba@gmail.com>
Sat, 19 Nov 2011 10:19:12 +0000 (11:19 +0100)
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>
src/search.cpp

index 4304298c73eb4783a7f45e4c20b488f3aa8f567e..702adc53dbdae3e81508f78e88c08cc12556630d 100644 (file)
@@ -651,11 +651,6 @@ namespace {
         // Check for some early stop condition
         if (!StopRequest && Limits.useTimeManagement())
         {
         // 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]);
             // 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]);