Skip to content

Commit aacee91

Browse files
VoyagerOnesnicolet
authored andcommitted
Update search.cpp
At PvNodes allow bonus for prior counter move that caused a fail low for depth 1 and 2. Note : I did a speculative LTC on yellow STC patch since history stats tend to be highly TC sensitive STC (Yellow): LLR: -2.96 (-2.94,2.94) [0.00,5.00] Total: 64295 W: 13042 L: 12873 D: 38380 http://tests.stockfishchess.org/tests/view/5af507c80ebc5968e6524153 LTC: LLR: 2.96 (-2.94,2.94) [0.00,5.00] Total: 22407 W: 3413 L: 3211 D: 15783 http://tests.stockfishchess.org/tests/view/5af85dd40ebc591fdf408b87 Also use local variable excludedMove in NMP (marotear) Bench: 5294316
1 parent bf01bd0 commit aacee91

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/search.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -737,7 +737,7 @@ namespace {
737737
&& (ss-1)->statScore < 22500
738738
&& eval >= beta
739739
&& ss->staticEval >= beta - 36 * depth / ONE_PLY + 225
740-
&& !ss->excludedMove
740+
&& !excludedMove
741741
&& pos.non_pawn_material(pos.side_to_move())
742742
&& (ss->ply >= thisThread->nmp_ply || ss->ply % 2 != thisThread->nmp_odd))
743743
{
@@ -1153,7 +1153,7 @@ namespace {
11531153
update_continuation_histories(ss-1, pos.piece_on(prevSq), prevSq, -stat_bonus(depth + ONE_PLY));
11541154
}
11551155
// Bonus for prior countermove that caused the fail low
1156-
else if ( depth >= 3 * ONE_PLY
1156+
else if ( (depth >= 3 * ONE_PLY || PvNode)
11571157
&& !pos.captured_piece()
11581158
&& is_ok((ss-1)->currentMove))
11591159
update_continuation_histories(ss-1, pos.piece_on(prevSq), prevSq, stat_bonus(depth));

0 commit comments

Comments
 (0)