Increase null reduction at high depths
authorMarco Costalba <mcostalba@gmail.com>
Thu, 31 Dec 2009 10:54:26 +0000 (11:54 +0100)
committerMarco Costalba <mcostalba@gmail.com>
Tue, 5 Jan 2010 07:09:09 +0000 (08:09 +0100)
Linear rule, less aggressive then Dann's one.

It seems it scales well with depth. We will need to
verify against weaker engine if it keeps the score.

After 999 games at 1+0 on my Dual Core
Mod vs Orig +232 =534 -207  +9 ELO

After 1000 games by Martin Thoresen on his QUAD at 1+0
Mod vs Orig 521/479 52.10%

Functionality Signature: 17655312

Signed-off-by: Marco Costalba <mcostalba@gmail.com>

src/search.cpp

index 1668a74..5fc9be3 100644 (file)
@@ -1376,7 +1376,7 @@ namespace {
         pos.do_null_move(st);
 
         // Null move dynamic reduction based on depth
-        int R = (depth >= 5 * OnePly ? 4 : 3);
+        int R = 3 + (depth >= 5 * OnePly ? depth / 8 : 0);
 
         // Null move dynamic reduction based on value
         if (approximateEval - beta > PawnValueMidgame)