Skip to content

Commit

Permalink
update stats also in check
Browse files Browse the repository at this point in the history
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
  • Loading branch information
locutus2 authored and zamar committed Apr 9, 2015
1 parent aaf1732 commit ef4d89c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/search.cpp
Expand Up @@ -599,7 +599,7 @@ namespace {
ss->currentMove = ttMove; // Can be MOVE_NONE

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

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

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

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

0 comments on commit ef4d89c

Please sign in to comment.