mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-21 09:37:16 +08:00
Use TT for pruning also in PV nodes
Biggest advantage is be able to analize positions without "loss of memory" when goind back/forth in a position. Patch has proven to fix analysys problems and is even worths some elo points. After 5811 games Mod- Orig: 1037 - 902 - 3872 +8 ELO (+- 3.6) LOS 97% Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
@@ -122,7 +122,7 @@ void TranspositionTable::store(const Key posKey, Value v, ValueType t, Depth d,
|
||||
continue;
|
||||
|
||||
c1 = (replace->generation() == generation ? 2 : 0);
|
||||
c2 = (tte->generation() == generation ? -2 : 0);
|
||||
c2 = (tte->generation() == generation || tte->type() == VALUE_TYPE_EXACT ? -2 : 0);
|
||||
c3 = (tte->depth() < replace->depth() ? 1 : 0);
|
||||
|
||||
if (c1 + c2 + c3 > 0)
|
||||
|
||||
Reference in New Issue
Block a user