mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-20 17:16:33 +08:00
Don't update TT at excluded move ply
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
This commit is contained in:
@@ -1125,10 +1125,11 @@ moves_loop: // When in check search starts from here
|
||||
&& 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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user