mirror of
https://github.com/opelly27/Stockfish.git
synced 2026-05-20 15:37:47 +00:00
Simplify bestValue formula
Passed STC: LLR: 2.94 (-2.94,2.94) <-1.75,0.25> Total: 45888 W: 12051 L: 11841 D: 21996 Ptnml(0-2): 123, 5356, 11807, 5504, 154 https://tests.stockfishchess.org/tests/view/670bb89086d5ee47d953c2d8 Passed LTC: LLR: 2.94 (-2.94,2.94) <-1.75,0.25> Total: 51336 W: 13021 L: 12830 D: 25485 Ptnml(0-2): 34, 5594, 14227, 5773, 40 https://tests.stockfishchess.org/tests/view/670c587f86d5ee47d953c31b closes https://github.com/official-stockfish/Stockfish/pull/5637 Bench: 1192999
This commit is contained in:
+1
-1
@@ -1551,7 +1551,7 @@ Value Search::Worker::qsearch(Position& pos, Stack* ss, Value alpha, Value beta)
|
|||||||
if (bestValue >= beta)
|
if (bestValue >= beta)
|
||||||
{
|
{
|
||||||
if (std::abs(bestValue) < VALUE_TB_WIN_IN_MAX_PLY)
|
if (std::abs(bestValue) < VALUE_TB_WIN_IN_MAX_PLY)
|
||||||
bestValue = (3 * bestValue + beta) / 4;
|
bestValue = (bestValue + beta) / 2;
|
||||||
if (!ss->ttHit)
|
if (!ss->ttHit)
|
||||||
ttWriter.write(posKey, value_to_tt(bestValue, ss->ply), false, BOUND_LOWER,
|
ttWriter.write(posKey, value_to_tt(bestValue, ss->ply), false, BOUND_LOWER,
|
||||||
DEPTH_UNSEARCHED, Move::none(), unadjustedStaticEval,
|
DEPTH_UNSEARCHED, Move::none(), unadjustedStaticEval,
|
||||||
|
|||||||
Reference in New Issue
Block a user