Skip to content

Commit 08f2cfa

Browse files
authored
Reduce probcut depth when improving (#1086)
STC Elo | 2.47 +- 1.87 (95%) SPRT | 8.0+0.08s Threads=1 Hash=16MB LLR | 2.90 (-2.25, 2.89) [0.00, 3.00] Games | N: 35530 W: 9008 L: 8755 D: 17767 Penta | [132, 4108, 9026, 4373, 126] https://recklesschess.space/test/15316/ LTC Elo | 2.61 +- 1.90 (95%) SPRT | 40.0+0.40s Threads=1 Hash=64MB LLR | 2.90 (-2.25, 2.89) [0.00, 3.00] Games | N: 29372 W: 7402 L: 7181 D: 14789 Penta | [8, 3201, 8058, 3400, 19] https://recklesschess.space/test/15317/ Thanks to @Vizvezdenec for the idea. Bench: 2764394
1 parent 9dba7df commit 08f2cfa

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/search.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -651,7 +651,7 @@ fn search<NODE: NodeType>(
651651

652652
let mut score = -qsearch::<NonPV>(td, -probcut_beta, -probcut_beta + 1, ply + 1);
653653

654-
let base_depth = (depth - 4).max(0);
654+
let base_depth = (depth - 4 - improving as i32).max(0);
655655
let mut probcut_depth = (base_depth - (score - probcut_beta) / 319).clamp(0, base_depth);
656656

657657
if score >= probcut_beta && probcut_depth > 0 {

0 commit comments

Comments
 (0)