mirror of
https://github.com/sockspls/badfish
synced 2025-05-01 17:19:36 +00:00
Late countermove bonus: remove "extraBonus &&"
passed stc: https://tests.stockfishchess.org/tests/view/63a71e409c0589b83751dc25 LLR: 2.94 (-2.94,2.94) <-1.75,0.25> Total: 432480 W: 113846 L: 114055 D: 204579 Ptnml(0-2): 1164, 48205, 117701, 48016, 1154 passed ltc: https://tests.stockfishchess.org/tests/view/63aba66639af998100ce1aa9 LLR: 2.95 (-2.94,2.94) <-1.75,0.25> Total: 245344 W: 65309 L: 65317 D: 114718 Ptnml(0-2): 117, 24257, 73903, 24307, 88 closes https://github.com/official-stockfish/Stockfish/pull/4322 bench 4379218
This commit is contained in:
parent
9fe9ff0082
commit
ea0f34120f
1 changed files with 3 additions and 8 deletions
|
@ -1359,14 +1359,9 @@ moves_loop: // When in check, search starts here
|
||||||
else if ( (depth >= 5 || PvNode || bestValue < alpha - 65 * depth)
|
else if ( (depth >= 5 || PvNode || bestValue < alpha - 65 * depth)
|
||||||
&& !priorCapture)
|
&& !priorCapture)
|
||||||
{
|
{
|
||||||
//Assign extra bonus if current node is PvNode or cutNode
|
// Extra bonuses for PV/Cut nodes or bad fail lows
|
||||||
//or fail low was really bad
|
int bonus = 1 + (PvNode || cutNode) + (bestValue < alpha - 88 * depth);
|
||||||
bool extraBonus = PvNode
|
update_continuation_histories(ss-1, pos.piece_on(prevSq), prevSq, stat_bonus(depth) * bonus);
|
||||||
|| cutNode;
|
|
||||||
|
|
||||||
bool doubleExtraBonus = extraBonus && bestValue < alpha - 88 * depth;
|
|
||||||
|
|
||||||
update_continuation_histories(ss-1, pos.piece_on(prevSq), prevSq, stat_bonus(depth) * (1 + extraBonus + doubleExtraBonus));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (PvNode)
|
if (PvNode)
|
||||||
|
|
Loading…
Add table
Reference in a new issue