mirror of
https://github.com/sockspls/badfish
synced 2025-05-02 09:39:36 +00:00
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 https://github.com/official-stockfish/Stockfish/pull/4392 Bench: 4283297
This commit is contained in:
parent
29c1e072b6
commit
085cace457
1 changed files with 2 additions and 3 deletions
|
@ -1371,11 +1371,10 @@ moves_loop: // When in check, search starts here
|
|||
quietsSearched, quietCount, capturesSearched, captureCount, depth);
|
||||
|
||||
// Bonus for prior countermove that caused the fail low
|
||||
else if ( (depth >= 5 || PvNode || bestValue < alpha - 65 * depth)
|
||||
&& !priorCapture)
|
||||
else if (!priorCapture)
|
||||
{
|
||||
// Extra bonuses for PV/Cut nodes or bad fail lows
|
||||
int bonus = 1 + (PvNode || cutNode) + (bestValue < alpha - 88 * depth);
|
||||
int bonus = (depth > 4) + (PvNode || cutNode) + (bestValue < alpha - 88 * depth);
|
||||
update_continuation_histories(ss-1, pos.piece_on(prevSq), prevSq, stat_bonus(depth) * bonus);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue