]> git.sesse.net Git - stockfish/commitdiff
Test Easy Move if no BestMoveChanges
authorJoona Kiiski <joona.kiiski@gmail.com>
Fri, 1 Nov 2013 20:42:47 +0000 (20:42 +0000)
committerMarco Costalba <mcostalba@gmail.com>
Sat, 2 Nov 2013 10:34:42 +0000 (11:34 +0100)
In case we find a very good move after a
troubled start, we don't return immediately
anymore.

Tested directly at long TC where it passed:
LLR: 2.95 (-2.94,2.94) [0.00,6.00]
Total: 13910 W: 2397 L: 2228 D: 9285

bench: 7995098

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