1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-04-30 16:53:09 +00:00

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 <mcostalba@gmail.com>
This commit is contained in:
Marco Costalba 2009-03-24 14:34:46 +01:00
parent 095a96b461
commit 1c087dd806

View file

@ -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);