mirror of
https://github.com/sockspls/badfish
synced 2025-05-01 17:19:36 +00:00
Enable Futility pruning in PV nodes
STC: LLR: 2.96 (-2.94,2.94) [-3.00,1.00] Total: 21553 W: 4342 L: 4221 D: 12990 LTC: LLR: 2.96 (-2.94,2.94) [-3.00,1.00] Total: 7675 W: 1351 L: 1209 D: 5115 Bench: 8668014 Resolves #205
This commit is contained in:
parent
7b20bb6e1a
commit
4abe333e1f
1 changed files with 3 additions and 4 deletions
|
@ -632,7 +632,7 @@ namespace {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Step 7. Futility pruning: child node (skipped when in check)
|
// Step 7. Futility pruning: child node (skipped when in check)
|
||||||
if ( !PvNode
|
if ( !RootNode
|
||||||
&& depth < 7 * ONE_PLY
|
&& depth < 7 * ONE_PLY
|
||||||
&& eval - futility_margin(depth) >= beta
|
&& eval - futility_margin(depth) >= beta
|
||||||
&& eval < VALUE_KNOWN_WIN // Do not return unproven wins
|
&& eval < VALUE_KNOWN_WIN // Do not return unproven wins
|
||||||
|
@ -829,9 +829,8 @@ moves_loop: // When in check and at SpNode search starts from here
|
||||||
// Update the current move (this must be done after singular extension search)
|
// Update the current move (this must be done after singular extension search)
|
||||||
newDepth = depth - ONE_PLY + extension;
|
newDepth = depth - ONE_PLY + extension;
|
||||||
|
|
||||||
// Step 13. Pruning at shallow depth (exclude PV nodes)
|
// Step 13. Pruning at shallow depth
|
||||||
if ( !PvNode
|
if ( !captureOrPromotion
|
||||||
&& !captureOrPromotion
|
|
||||||
&& !inCheck
|
&& !inCheck
|
||||||
&& !dangerous
|
&& !dangerous
|
||||||
&& bestValue > VALUE_MATED_IN_MAX_PLY)
|
&& bestValue > VALUE_MATED_IN_MAX_PLY)
|
||||||
|
|
Loading…
Add table
Reference in a new issue