]> git.sesse.net Git - stockfish/blobdiff - src/search.cpp
Simplify falling eval time factor.
[stockfish] / src / search.cpp
index cded8614ad9d6c77851b5b71db034ec96baa0e38..687bf0a9d2f63712ce31d7947ca36f42a6b3722f 100644 (file)
@@ -490,9 +490,8 @@ void Thread::search() {
           && !Threads.stop
           && !mainThread->stopOnPonderhit)
       {
-          double fallingEval = (142 + 6 * (mainThread->bestPreviousScore - bestValue)
-                                    + 6 * (mainThread->bestPreviousAverageScore - bestValue)
-                                    + 6 * (mainThread->iterValue[iterIdx] - bestValue)) / 825.0;
+          double fallingEval = (142 + 12 * (mainThread->bestPreviousAverageScore - bestValue)
+                                    +  6 * (mainThread->iterValue[iterIdx] - bestValue)) / 825.0;
           fallingEval = std::clamp(fallingEval, 0.5, 1.5);
 
           // If the bestMove is stable over several iterations, reduce time accordingly