Skip to content

Commit 085cace

Browse files
dubslowvondele
authored andcommitted
Simplify late countermove bonus condition
STC: https://tests.stockfishchess.org/tests/view/63d53ac6a67dd929a555e1e2 LLR: 2.95 (-2.94,2.94) <-1.75,0.25> Total: 216096 W: 56862 L: 56839 D: 102395 Ptnml(0-2): 648, 24033, 58650, 24082, 635 LTC: https://tests.stockfishchess.org/tests/view/63d7f9a6a67dd929a5565991 LLR: 2.95 (-2.94,2.94) <-1.75,0.25> Total: 808512 W: 214060 L: 214610 D: 379842 Ptnml(0-2): 301, 79448, 245293, 78928, 286 closes #4392 Bench: 4283297
1 parent 29c1e07 commit 085cace

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/search.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1371,11 +1371,10 @@ namespace {
13711371
quietsSearched, quietCount, capturesSearched, captureCount, depth);
13721372

13731373
// Bonus for prior countermove that caused the fail low
1374-
else if ( (depth >= 5 || PvNode || bestValue < alpha - 65 * depth)
1375-
&& !priorCapture)
1374+
else if (!priorCapture)
13761375
{
13771376
// Extra bonuses for PV/Cut nodes or bad fail lows
1378-
int bonus = 1 + (PvNode || cutNode) + (bestValue < alpha - 88 * depth);
1377+
int bonus = (depth > 4) + (PvNode || cutNode) + (bestValue < alpha - 88 * depth);
13791378
update_continuation_histories(ss-1, pos.piece_on(prevSq), prevSq, stat_bonus(depth) * bonus);
13801379
}
13811380

0 commit comments

Comments
 (0)