Skip to content

Commit b7b6b4b

Browse files
locutus2snicolet
authored andcommittedSep 7, 2021
Further improve history updates
Now even double history updates if a search failed low at an expected PV or CUT node. STC: LLR: 2.93 (-2.94,2.94) <-0.50,2.50> Total: 30736 W: 7891 L: 7674 D: 15171 Ptnml(0-2): 90, 3477, 8017, 3694, 90 https://tests.stockfishchess.org/tests/view/61364ae30cd98ab40c0c9da5 LTC: LLR: 2.94 (-2.94,2.94) <0.50,3.50> Total: 73600 W: 18684 L: 18326 D: 36590 Ptnml(0-2): 41, 7734, 20899, 8078, 48 https://tests.stockfishchess.org/tests/view/6136940f0cd98ab40c0c9df3 closes official-stockfish#3694 Bench: 6030657

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/search.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1325,7 +1325,7 @@ namespace {
13251325
// Bonus for prior countermove that caused the fail low
13261326
else if ( (depth >= 3 || PvNode)
13271327
&& !priorCapture)
1328-
update_continuation_histories(ss-1, pos.piece_on(prevSq), prevSq, stat_bonus(depth + (PvNode || cutNode)));
1328+
update_continuation_histories(ss-1, pos.piece_on(prevSq), prevSq, stat_bonus(depth) * (1 + (PvNode || cutNode)));
13291329

13301330
if (PvNode)
13311331
bestValue = std::min(bestValue, maxValue);

0 commit comments

Comments
 (0)
Please sign in to comment.