]> git.sesse.net Git - stockfish/commitdiff
More aggressive dynamic LMR
authorMarco Costalba <mcostalba@gmail.com>
Mon, 23 Mar 2009 10:58:28 +0000 (11:58 +0100)
committerMarco Costalba <mcostalba@gmail.com>
Mon, 23 Mar 2009 10:58:28 +0000 (11:58 +0100)
Previous setup didn't change anything

After 996 games 1+0: +267 -261 =468 +2 ELO

Now with this new setup we have

After 999 games 1+0: +277 -245 =477 +11 ELO

Seems reasonable...

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
src/search.cpp

index 295ef63ea24d1c9645b26aa694b5be0c353e7f8c..d08f698f531792aee62002abea194442f36aff30 100644 (file)
@@ -1333,7 +1333,7 @@ namespace {
           && !move_is_killer(move, ss[ply]))
       {
           // LMR dynamic reduction
           && !move_is_killer(move, ss[ply]))
       {
           // LMR dynamic reduction
-          Depth R = (moveCount >= 3 * LMRNonPVMoves && depth >= 7*OnePly ? 2*OnePly : OnePly);
+          Depth R = (moveCount >= 2 * LMRNonPVMoves && depth > 7*OnePly ? 2*OnePly : OnePly);
 
           ss[ply].reduction = R;
           value = -search(pos, ss, -(beta-1), newDepth-R, ply+1, true, threadID);
 
           ss[ply].reduction = R;
           value = -search(pos, ss, -(beta-1), newDepth-R, ply+1, true, threadID);