mirror of
https://github.com/sockspls/badfish
synced 2025-07-12 03:59:15 +00:00
Futility tweak
Use a different margin for pruning child nodes. STC: LLR: 2.95 (-2.94,2.94) [0.00,5.00] Total: 16692 W: 3251 L: 3051 D: 10390 http://tests.stockfishchess.org/tests/view/579b95d10ebc591c761f5c03 LTC: LLR: 2.97 (-2.94,2.94) [0.00,5.00] Total: 24140 W: 3501 L: 3297 D: 17342 http://tests.stockfishchess.org/tests/view/579bb15d0ebc591c761f5c0b Bench: 7927017
This commit is contained in:
parent
f2f3a06a1a
commit
85924db496
1 changed files with 2 additions and 2 deletions
|
@ -65,7 +65,7 @@ namespace {
|
||||||
|
|
||||||
// Razoring and futility margin based on depth
|
// Razoring and futility margin based on depth
|
||||||
const int razor_margin[4] = { 483, 570, 603, 554 };
|
const int razor_margin[4] = { 483, 570, 603, 554 };
|
||||||
Value futility_margin(Depth d) { return Value(200 * d); }
|
Value futility_margin(Depth d) { return Value(150 * d); }
|
||||||
|
|
||||||
// Futility and reductions lookup tables, initialized at startup
|
// Futility and reductions lookup tables, initialized at startup
|
||||||
int FutilityMoveCounts[2][16]; // [improving][depth]
|
int FutilityMoveCounts[2][16]; // [improving][depth]
|
||||||
|
@ -926,7 +926,7 @@ moves_loop: // When in check search starts from here
|
||||||
|
|
||||||
// Futility pruning: parent node
|
// Futility pruning: parent node
|
||||||
if ( predictedDepth < 7 * ONE_PLY
|
if ( predictedDepth < 7 * ONE_PLY
|
||||||
&& ss->staticEval + futility_margin(predictedDepth) + 256 <= alpha)
|
&& ss->staticEval + 256 + 200 * predictedDepth / ONE_PLY <= alpha)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
// Prune moves with negative SEE at low depths and below a decreasing
|
// Prune moves with negative SEE at low depths and below a decreasing
|
||||||
|
|
Loading…
Add table
Reference in a new issue