Skip to content

Commit

Permalink
Adjust futility pruning base in qsearch
Browse files Browse the repository at this point in the history
Current master used value from transposition table there if it existed,
this patch uses minimum between this tt value and the static eval instead
(this thus is closer to the main search function, which uses the static eval).

Passed STC:
https://tests.stockfishchess.org/tests/view/64cd57285b17f7c21c0d6a8c
LLR: 2.94 (-2.94,2.94) <0.00,2.00>
Total: 252544 W: 64671 L: 64039 D: 123834
Ptnml(0-2): 839, 29207, 65575, 29785, 866

Passed LTC:
https://tests.stockfishchess.org/tests/view/64cf6c915b17f7c21c0d9fcb
LLR: 2.95 (-2.94,2.94) <0.50,2.50>
Total: 60150 W: 15374 L: 15012 D: 29764
Ptnml(0-2): 24, 6321, 17024, 6681, 25

closes official-stockfish/Stockfish#4725

Bench: 1573024
  • Loading branch information
Vizvezdenec authored and snicolet committed Aug 7, 2023
1 parent a26f8d3 commit 5c2111c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/search.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1495,7 +1495,7 @@ namespace {
if (bestValue > alpha)
alpha = bestValue;

futilityBase = bestValue + 200;
futilityBase = std::min(ss->staticEval, bestValue) + 200;
}

const PieceToHistory* contHist[] = { (ss-1)->continuationHistory, (ss-2)->continuationHistory,
Expand Down

0 comments on commit 5c2111c

Please sign in to comment.