Adjust aspiration window with eval
[stockfish] / src / search.cpp
index 6cf999380b6001e9069dcd154a812cc6e4827d3d..1742c6766aa3d65adf0616151fc669e1fac9632f 100644 (file)
@@ -412,7 +412,7 @@ void Thread::search() {
           if (rootDepth >= 4)
           {
               Value previousScore = rootMoves[pvIdx].previousScore;
-              delta = Value(23);
+              delta = Value(21 + abs(previousScore) / 128);
               alpha = std::max(previousScore - delta,-VALUE_INFINITE);
               beta  = std::min(previousScore + delta, VALUE_INFINITE);