mirror of
https://github.com/sockspls/badfish
synced 2025-04-29 08:13:08 +00:00
Simplify bestvalue formula
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 https://github.com/official-stockfish/Stockfish/pull/5622 Bench: 1309815
This commit is contained in:
parent
3348603770
commit
9a21e3e996
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue