From 1c087dd806b65c5d6668706f0c8fddf14f6fcd41 Mon Sep 17 00:00:00 2001 From: Marco Costalba Date: Tue, 24 Mar 2009 14:34:46 +0100 Subject: [PATCH 1/1] Let to toggle dynamic LMR It is now disabled by default due to bad results against a pool of engines...more testing is needed tough. Signed-off-by: Marco Costalba --- src/search.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/search.cpp b/src/search.cpp index c4446fc5..f5235192 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -121,6 +121,9 @@ namespace { // Depth limit for selective search: Depth SelectiveDepth = 7*OnePly; + // Use dynamic LMR? + const bool UseDynamicLMR = false; + // Use internal iterative deepening? const bool UseIIDAtPVNodes = true; const bool UseIIDAtNonPVNodes = false; @@ -1333,7 +1336,9 @@ namespace { && !move_is_killer(move, ss[ply])) { // LMR dynamic reduction - Depth R = (moveCount >= 2 * LMRNonPVMoves && depth > 7*OnePly ? 2*OnePly : OnePly); + Depth R = UseDynamicLMR + && 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); -- 2.39.2