]> git.sesse.net Git - stockfish/commitdiff
Revert odd depths razoring
authorMarco Costalba <mcostalba@gmail.com>
Mon, 23 Mar 2009 11:02:15 +0000 (12:02 +0100)
committerMarco Costalba <mcostalba@gmail.com>
Mon, 23 Mar 2009 11:02:15 +0000 (12:02 +0100)
I have just made a new rule that no modification
that increases pruning is allowed if after 1000 games
ELO is not increased by at least 10 point (was +5 in this case)

Yes, I like this kind of nosense rules :-)

src/search.cpp

index d08f698f531792aee62002abea194442f36aff30..0e3838371fe0bc95366462fd1b8d547a2e3bd079 100644 (file)
@@ -1245,8 +1245,8 @@ namespace {
     {
         Value v = qsearch(pos, ss, beta-1, beta, Depth(0), ply, threadID);
         if (   (v < beta - RazorMargin - RazorMargin / 4)
-            || (depth < 3*OnePly && v < beta - RazorMargin)
-            || (depth < 2*OnePly && v < beta - RazorMargin / 2))
+            || (depth <= 2*OnePly && v < beta - RazorMargin)
+            || (depth <=   OnePly && v < beta - RazorMargin / 2))
             return v;
     }