mirror of
https://github.com/sockspls/badfish
synced 2025-05-01 09:13:08 +00:00
Simplify the depth-dependent part of the best value adjustment formula in main search
Passed STC: LLR: 2.95 (-2.94,2.94) <-1.75,0.25> Total: 139648 W: 36171 L: 36061 D: 67416 Ptnml(0-2): 545, 16685, 35282, 16739, 573 https://tests.stockfishchess.org/tests/view/660d953b8ff4a059828d625d Passed LTC: LLR: 2.94 (-2.94,2.94) <-1.75,0.25> Total: 222894 W: 56519 L: 56505 D: 109870 Ptnml(0-2): 112, 25145, 60971, 25055, 164 https://tests.stockfishchess.org/tests/view/660fd4afbfeb43334bf7d558 closes https://github.com/official-stockfish/Stockfish/pull/5164 bench: 1479416
This commit is contained in:
parent
d6bdcec52c
commit
249eec6715
1 changed files with 2 additions and 2 deletions
|
@ -1307,7 +1307,7 @@ moves_loop: // When in check, search starts here
|
|||
// Adjust best value for fail high cases at non-pv nodes
|
||||
if (!PvNode && bestValue >= beta && std::abs(bestValue) < VALUE_TB_WIN_IN_MAX_PLY
|
||||
&& std::abs(beta) < VALUE_TB_WIN_IN_MAX_PLY && std::abs(alpha) < VALUE_TB_WIN_IN_MAX_PLY)
|
||||
bestValue = (bestValue * (depth + 2) + beta) / (depth + 3);
|
||||
bestValue = (bestValue * depth + beta) / (depth + 1);
|
||||
|
||||
if (!moveCount)
|
||||
bestValue = excludedMove ? alpha : ss->inCheck ? mated_in(ss->ply) : VALUE_DRAW;
|
||||
|
|
Loading…
Add table
Reference in a new issue