mirror of
https://github.com/sockspls/badfish
synced 2025-05-01 09:13:08 +00:00
Revert dynamic LMR
It doesn't seem to work against Toga. After more then 400 games we are at -13 ELO while, without it we are at + 5 ELO after 1000 games. So revert for now to keep code simple. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
parent
7b05b83bf2
commit
8590a6f3b7
1 changed files with 2 additions and 10 deletions
|
@ -121,9 +121,6 @@ namespace {
|
||||||
// Depth limit for selective search:
|
// Depth limit for selective search:
|
||||||
Depth SelectiveDepth = 7*OnePly;
|
Depth SelectiveDepth = 7*OnePly;
|
||||||
|
|
||||||
// Use dynamic LMR?
|
|
||||||
const bool UseDynamicLMR = false;
|
|
||||||
|
|
||||||
// Use internal iterative deepening?
|
// Use internal iterative deepening?
|
||||||
const bool UseIIDAtPVNodes = true;
|
const bool UseIIDAtPVNodes = true;
|
||||||
const bool UseIIDAtNonPVNodes = false;
|
const bool UseIIDAtNonPVNodes = false;
|
||||||
|
@ -1335,13 +1332,8 @@ namespace {
|
||||||
&& !move_is_castle(move)
|
&& !move_is_castle(move)
|
||||||
&& !move_is_killer(move, ss[ply]))
|
&& !move_is_killer(move, ss[ply]))
|
||||||
{
|
{
|
||||||
// LMR dynamic reduction
|
ss[ply].reduction = OnePly;
|
||||||
Depth R = UseDynamicLMR
|
value = -search(pos, ss, -(beta-1), newDepth-OnePly, ply+1, true, threadID);
|
||||||
&& 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);
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
value = beta; // Just to trigger next condition
|
value = beta; // Just to trigger next condition
|
||||||
|
|
Loading…
Add table
Reference in a new issue