Skip to content

Commit

Permalink
Don't update TT at excluded move ply
Browse files Browse the repository at this point in the history
STC:
LLR: 2.96 (-2.94,2.94) [0.00,5.00]
Total: 38906 W: 7125 L: 6835 D: 24946

LTC:
LLR: 2.95 (-2.94,2.94) [0.00,5.00]
Total: 28600 W: 3752 L: 3543 D: 21305

Bench:  6861050

Closes #1048
  • Loading branch information
VoyagerOne authored and zamar committed Apr 3, 2017
1 parent 06eba14 commit ebe021f
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/search.cpp
Expand Up @@ -1125,10 +1125,11 @@ namespace {
&& cm_ok)
update_cm_stats(ss-1, pos.piece_on(prevSq), prevSq, stat_bonus(depth));

tte->save(posKey, value_to_tt(bestValue, ss->ply),
bestValue >= beta ? BOUND_LOWER :
PvNode && bestMove ? BOUND_EXACT : BOUND_UPPER,
depth, bestMove, ss->staticEval, TT.generation());
if(!excludedMove)
tte->save(posKey, value_to_tt(bestValue, ss->ply),
bestValue >= beta ? BOUND_LOWER :
PvNode && bestMove ? BOUND_EXACT : BOUND_UPPER,
depth, bestMove, ss->staticEval, TT.generation());

assert(bestValue > -VALUE_INFINITE && bestValue < VALUE_INFINITE);

Expand Down

0 comments on commit ebe021f

Please sign in to comment.