Skip to content

Commit 93b9668

Browse files
FauziAkramDisservin
authored andcommitted
Simplify bestvalue update formula
Passed STC: LLR: 2.95 (-2.94,2.94) <-1.75,0.25> Total: 124960 W: 32598 L: 32472 D: 59890 Ptnml(0-2): 480, 14852, 31694, 14970, 484 https://tests.stockfishchess.org/tests/view/67b348bae00eea114cdba37d Passed LTC: LLR: 2.94 (-2.94,2.94) <-1.75,0.25> Total: 150306 W: 38220 L: 38132 D: 73954 Ptnml(0-2): 98, 16430, 42005, 16526, 94 https://tests.stockfishchess.org/tests/view/67b5e37918a66624a7a3f751 closes #5898 Bench: 2146010
1 parent 0f9ae0d commit 93b9668

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/search.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1720,8 +1720,8 @@ Value Search::Worker::qsearch(Position& pos, Stack* ss, Value alpha, Value beta)
17201720
return mated_in(ss->ply); // Plies to mate from the root
17211721
}
17221722

1723-
if (!is_decisive(bestValue) && bestValue >= beta)
1724-
bestValue = (3 * bestValue + beta) / 4;
1723+
if (!is_decisive(bestValue) && bestValue > beta)
1724+
bestValue = (bestValue + beta) / 2;
17251725

17261726
// Save gathered info in transposition table. The static evaluation
17271727
// is saved as it was before adjustment by correction history.

0 commit comments

Comments
 (0)