]> git.sesse.net Git - stockfish/blobdiff - src/search.cpp
Test Easy Move if no BestMoveChanges
[stockfish] / src / search.cpp
index e2ab9cd933db6bd0774c27a456985f92292db96a..c0a982363403ccae483d2fc5a00796e2323a06f6 100644 (file)
@@ -19,6 +19,7 @@
 
 #include <algorithm>
 #include <cassert>
+#include <cfloat>
 #include <cmath>
 #include <cstring>
 #include <iostream>
@@ -440,6 +441,7 @@ namespace {
 
             // Stop search early if one move seems to be much better than others
             if (    depth >= 12
+                &&  BestMoveChanges <= DBL_EPSILON
                 && !stop
                 &&  PVSize == 1
                 &&  bestValue > VALUE_MATED_IN_MAX_PLY