Skip to content

Commit ef4d89c

Browse files
locutus2zamar
authored andcommitted
update stats also in check
Update stats also if in check (drop condition). STC: LLR: 3.22 (-2.94,2.94) [-3.00,1.00] Total: 87472 W: 16929 L: 16913 D: 53630 LTC: LLR: 2.96 (-2.94,2.94) [-3.00,1.00] Total: 39971 W: 6436 L: 6345 D: 27190 Bench: 7086031 Resolves #327
1 parent aaf1732 commit ef4d89c

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
@@ -599,7 +599,7 @@ namespace {
599599
ss->currentMove = ttMove; // Can be MOVE_NONE
600600

601601
// If ttMove is quiet, update killers, history, counter move on TT hit
602-
if (ttValue >= beta && ttMove && !pos.capture_or_promotion(ttMove) && !inCheck)
602+
if (ttValue >= beta && ttMove && !pos.capture_or_promotion(ttMove))
603603
update_stats(pos, ss, ttMove, depth, nullptr, 0);
604604

605605
return ttValue;
@@ -1144,7 +1144,7 @@ namespace {
11441144
: inCheck ? mated_in(ss->ply) : DrawValue[pos.side_to_move()];
11451145

11461146
// Quiet best move: update killers, history and countermoves
1147-
else if (bestValue >= beta && !pos.capture_or_promotion(bestMove) && !inCheck)
1147+
else if (bestValue >= beta && !pos.capture_or_promotion(bestMove))
11481148
update_stats(pos, ss, bestMove, depth, quietsSearched, quietCount - 1);
11491149

11501150
tte->save(posKey, value_to_tt(bestValue, ss->ply),

0 commit comments

Comments
 (0)