Skip to content

Commit

Permalink
Simplify QS futility pruning conditions (#473)
Browse files Browse the repository at this point in the history
Elo | 2.98 +- 3.00 (95%)
SPRT | 8.0+0.08s Threads=1 Hash=16MB
LLR | 2.90 (-2.25, 2.89) [-3.00, 1.00]
Games | N: 12360 W: 3007 L: 2901 D: 6452
Penta | [32, 1286, 3455, 1358, 49]

Elo | -0.11 +- 1.22 (95%)
SPRT | 40.0+0.40s Threads=1 Hash=64MB
LLR | 1.63 (-2.25, 2.89) [-3.00, 1.00]
Games | N: 64422 W: 14381 L: 14401 D: 35640
Penta | [37, 6500, 19156, 6482, 36]

Bench: 6083794
  • Loading branch information
PGG106 authored Oct 4, 2024
1 parent 7de97e7 commit 1956b7d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/search.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -920,8 +920,7 @@ int Quiescence(int alpha, int beta, ThreadData* td, SearchStack* ss) {

// Futility pruning. If static eval is far below alpha, only search moves that win material.
if ( bestScore > -MATE_FOUND
&& !inCheck
&& BoardHasNonPawns(pos, pos->side)) {
&& !inCheck) {
const int futilityBase = ss->staticEval + 192;
if (futilityBase <= alpha && !SEE(pos, move, 1)) {
bestScore = std::max(futilityBase, bestScore);
Expand Down

0 comments on commit 1956b7d

Please sign in to comment.