]> git.sesse.net Git - stockfish/blobdiff - src/search.cpp
Do not use evaluate() for razoring
[stockfish] / src / search.cpp
index 8f2cbb0aa942bebd289024e4224e619ed1bcdbbf..c2974dcfeebffdc2671955a17d5a3cb19c1e43ac 100644 (file)
@@ -22,7 +22,6 @@
 ////
 
 #include <cassert>
-#include <cstdio>
 #include <fstream>
 #include <iostream>
 #include <sstream>
@@ -1123,9 +1122,7 @@ namespace {
         }
     }
     // Null move search not allowed, try razoring
-    else if (   depth < RazorDepth
-             && approximateEval < beta - RazorMargin
-             && evaluate(pos, ei, threadID) < beta - RazorMargin)
+    else if (depth < RazorDepth && approximateEval < beta - RazorMargin)
     {
         Value v = qsearch(pos, ss, beta-1, beta, Depth(0), ply, threadID);
         if (v < beta)