]> git.sesse.net Git - stockfish/blobdiff - src/search.cpp
Evaluation drift: add always 7 instead of ply
[stockfish] / src / search.cpp
index 41f679a2e791a73a4e39a7a1b3cefb5767775da7..06cc9b60fc97155cf6687422ad5d2b8b2de1eb5b 100644 (file)
@@ -1540,10 +1540,10 @@ namespace {
         // Use the cached evaluation score if possible
         assert(ei.futilityMargin == Value(0));
 
-        staticValue = tte->value() + ply;
+        staticValue = tte->value() + 7;
     }
     else
-        staticValue = evaluate(pos, ei, threadID) + ply;
+        staticValue = evaluate(pos, ei, threadID) + 7;
 
     if (ply == PLY_MAX - 1)
         return evaluate(pos, ei, threadID);