Skip to content

Commit 7ed15af

Browse files
committed
Cap evaluation based null move extra reduction to three plies
It's a zero elo patch, and a reasonable safeguard against uncontrolled extreme reductions. STC: ELO: -0.08 +-2.0 (95%) LOS: 46.9% Total: 40000 W: 6728 L: 6737 D: 26535 LTC: ELO: -0.14 +-1.8 (95%) LOS: 44.0% Total: 40000 W: 5557 L: 5573 D: 28870 Bench: 7201830
1 parent d6613b7 commit 7ed15af

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/search.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -567,8 +567,7 @@ namespace {
567567
// Null move dynamic reduction based on depth and value
568568
Depth R = 3 * ONE_PLY
569569
+ depth / 4
570-
+ (abs(beta) < VALUE_KNOWN_WIN ? int(eval - beta) / PawnValueMg * ONE_PLY
571-
: DEPTH_ZERO);
570+
+ std::min(int(eval - beta) / PawnValueMg, 3) * ONE_PLY;
572571

573572
pos.do_null_move(st);
574573
(ss+1)->skipNullMove = true;

0 commit comments

Comments
 (0)