mirror of
https://github.com/sockspls/badfish
synced 2025-05-02 01:29:36 +00:00
Refine improving-logic
Don't rely on the assumption that we are improving after surviving a check. Instead, compare with the static eval of 2 moves before. STC https://tests.stockfishchess.org/tests/view/5dedfd7f3cff9a249bb9e44d LLR: 2.95 (-2.94,2.94) [-1.50,4.50] Total: 38859 W: 8621 L: 8397 D: 21841 LTC https://tests.stockfishchess.org/tests/view/5dee1b5a3cff9a249bb9e465 LLR: 2.95 (-2.94,2.94) [0.00,3.50] Total: 51130 W: 8308 L: 7996 D: 34826 Bench: 5371271
This commit is contained in:
parent
443787b0d1
commit
b6482472a0
1 changed files with 2 additions and 2 deletions
|
@ -812,8 +812,8 @@ namespace {
|
||||||
&& eval <= alpha - RazorMargin)
|
&& eval <= alpha - RazorMargin)
|
||||||
return qsearch<NT>(pos, ss, alpha, beta);
|
return qsearch<NT>(pos, ss, alpha, beta);
|
||||||
|
|
||||||
improving = ss->staticEval >= (ss-2)->staticEval
|
improving = (ss-2)->staticEval == VALUE_NONE ? (ss->staticEval >= (ss-4)->staticEval
|
||||||
|| (ss-2)->staticEval == VALUE_NONE;
|
|| (ss-4)->staticEval == VALUE_NONE) : ss->staticEval >= (ss-2)->staticEval;
|
||||||
|
|
||||||
// Step 8. Futility pruning: child node (~30 Elo)
|
// Step 8. Futility pruning: child node (~30 Elo)
|
||||||
if ( !PvNode
|
if ( !PvNode
|
||||||
|
|
Loading…
Add table
Reference in a new issue