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:
parent
35fa4fc71f
commit
c56a7ee803
1 changed files with 0 additions and 5 deletions
|
@ -651,11 +651,6 @@ namespace {
|
||||||
// Check for some early stop condition
|
// Check for some early stop condition
|
||||||
if (!StopRequest && Limits.useTimeManagement())
|
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
|
// Take in account some extra time if the best move has changed
|
||||||
if (depth > 4 && depth < 50)
|
if (depth > 4 && depth < 50)
|
||||||
TimeMgr.pv_instability(bestMoveChanges[depth], bestMoveChanges[depth - 1]);
|
TimeMgr.pv_instability(bestMoveChanges[depth], bestMoveChanges[depth - 1]);
|
||||||
|
|
Loading…
Add table
Reference in a new issue