Simplify away conthist 0

While at it, I also added the scaler note to the Lmrdepth/history formula.

Passed STC:
LLR: 2.96 (-2.94,2.94) <-1.75,0.25>
Total: 25376 W: 6660 L: 6423 D: 12293
Ptnml(0-2): 77, 2947, 6403, 3184, 77
https://tests.stockfishchess.org/tests/view/68c1ccf759efc3c96b610deb

Passed LTC:
LLR: 2.94 (-2.94,2.94) <-1.75,0.25>
Total: 208464 W: 53371 L: 53342 D: 101751
Ptnml(0-2): 110, 22776, 58426, 22815, 105
https://tests.stockfishchess.org/tests/view/68c1d04b59efc3c96b610e13

closes https://github.com/official-stockfish/Stockfish/pull/6304

Bench: 2029296
This commit is contained in:
FauziAkram
2025-09-28 21:14:28 +02:00
committed by Joost VandeVondele
parent 415a1ad426
commit 40aeb5a411
+2 -3
View File
@@ -1067,6 +1067,7 @@ moves_loop: // When in check, search starts here
history += 76 * mainHistory[us][move.from_to()] / 32;
// (*Scaler): Generally, a lower divisor scales well
lmrDepth += history / 3220;
Value futilityValue = ss->staticEval + 47 + 171 * !bestMove + 134 * lmrDepth
@@ -1630,9 +1631,7 @@ Value Search::Worker::qsearch(Position& pos, Stack* ss, Value alpha, Value beta)
// Continuation history based pruning
if (!capture
&& (*contHist[0])[pos.moved_piece(move)][move.to_sq()]
+ pawnHistory[pawn_history_index(pos)][pos.moved_piece(move)][move.to_sq()]
<= 5475)
&& pawnHistory[pawn_history_index(pos)][pos.moved_piece(move)][move.to_sq()] < 7300)
continue;
// Do not search moves with bad enough SEE values