Skip to content

Commit 38c3a4a

Browse files
Apply root delta reductions to pruning also (#614)
Elo | 1.38 +- 1.12 (95%) SPRT | 8.0+0.08s Threads=1 Hash=16MB LLR | 2.91 (-2.25, 2.89) [0.00, 3.00] Games | N: 93428 W: 23195 L: 22823 D: 47410 Penta | [148, 11011, 24037, 11357, 161] https://recklesschess.space/test/9574/ Bench: 3146895
1 parent c50b0e8 commit 38c3a4a

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/search.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -669,6 +669,10 @@ fn search<NODE: NodeType>(
669669

670670
let mut reduction = (1300 + 286 * depth.ilog2() * move_count.ilog2()) as i32;
671671

672+
if NODE::PV {
673+
reduction -= 439 + 404 * (beta - alpha) / td.root_delta;
674+
}
675+
672676
if !improving {
673677
reduction += (446 - 304 * improvement / 128).min(1288);
674678
}
@@ -754,10 +758,6 @@ fn search<NODE: NodeType>(
754758
reduction -= 803 * (is_valid(tt_score) && tt_depth >= depth) as i32;
755759
}
756760

757-
if NODE::PV {
758-
reduction -= 439 + 404 * (beta - alpha) / td.root_delta;
759-
}
760-
761761
if mv.is_noisy() && mv.to() == td.board.recapture_square() {
762762
reduction -= 937;
763763
}

0 commit comments

Comments
 (0)