mirror of
https://github.com/sockspls/badfish
synced 2025-04-29 16:23:09 +00:00
Refactor bestvalue adjustment in qsearch
closes https://github.com/official-stockfish/Stockfish/pull/4935 No functional change
This commit is contained in:
parent
f388e41809
commit
bab1cc300c
2 changed files with 3 additions and 3 deletions
2
AUTHORS
2
AUTHORS
|
@ -72,7 +72,7 @@ Fabian Beuke (madnight)
|
|||
Fabian Fichter (ianfab)
|
||||
Fanael Linithien (Fanael)
|
||||
fanon
|
||||
Fauzi Akram Dabat (FauziAkram)
|
||||
Fauzi Akram Dabat (fauzi2)
|
||||
Felix Wittmann
|
||||
gamander
|
||||
Gabriele Lombardo (gabe)
|
||||
|
|
|
@ -1616,8 +1616,8 @@ Value qsearch(Position& pos, Stack* ss, Value alpha, Value beta, Depth depth) {
|
|||
return mated_in(ss->ply); // Plies to mate from the root
|
||||
}
|
||||
|
||||
if (std::abs(bestValue) < VALUE_TB_WIN_IN_MAX_PLY)
|
||||
bestValue = bestValue >= beta ? (3 * bestValue + beta) / 4 : bestValue;
|
||||
if (std::abs(bestValue) < VALUE_TB_WIN_IN_MAX_PLY && bestValue >= beta)
|
||||
bestValue = (3 * bestValue + beta) / 4;
|
||||
|
||||
// Save gathered info in transposition table
|
||||
tte->save(posKey, value_to_tt(bestValue, ss->ply), pvHit,
|
||||
|
|
Loading…
Add table
Reference in a new issue