Skip to content

Commit

Permalink
Simplify bestvalue formula
Browse files Browse the repository at this point in the history
Passed STC:
LLR: 2.97 (-2.94,2.94) <-1.75,0.25>
Total: 163680 W: 42689 L: 42605 D: 78386
Ptnml(0-2): 619, 19555, 41386, 19683, 597
https://tests.stockfishchess.org/tests/view/66f9451386d5ee47d953b7d9

Passed LTC:
LLR: 2.94 (-2.94,2.94) <-1.75,0.25>
Total: 96498 W: 24582 L: 24438 D: 47478
Ptnml(0-2): 62, 10642, 26718, 10744, 83
https://tests.stockfishchess.org/tests/view/66fd765786d5ee47d953ba1c

closes #5622

Bench: 1309815
  • Loading branch information
FauziAkram authored and Disservin committed Oct 12, 2024
1 parent 3348603 commit 9a21e3e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/search.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1610,11 +1610,11 @@ Value Search::Worker::qsearch(Position& pos, Stack* ss, Value alpha, Value beta)
continue;
}

// if static exchange evaluation is low enough
// If static exchange evaluation is low enough
// we can prune this move. (~2 Elo)
if (!pos.see_ge(move, alpha - futilityBase))
{
bestValue = (futilityBase > alpha) ? alpha : std::max(bestValue, futilityBase);
bestValue = std::min(alpha, futilityBase);
continue;
}
}
Expand Down

0 comments on commit 9a21e3e

Please sign in to comment.