Skip to content

Commit 2499766

Browse files
committed
Improve TT replacement scheme (#180)
ELO | 8.88 +- 5.80 (95%) SPRT | 8.0+0.08s Threads=1 Hash=2MB LLR | 3.09 (-2.94, 2.94) [0.00, 5.00] GAMES | N: 7200 W: 1974 L: 1790 D: 3436 Bench: 5557233
1 parent 03f3876 commit 2499766

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/tt.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ void TTable::add(Position const &position, Move move, int16_t score, uint8_t dep
3939
uint64_t hash = position.get_key();
4040
uint64_t index = hash % entries.size();
4141

42-
if (flag != TEFlag::exact && hash == entries[index].hash && depth < entries[index].depth) return;
42+
if (flag != TEFlag::exact && hash == entries[index].hash && depth < entries[index].depth - 1) return;
4343

4444
if (flag == TEFlag::exact || depth * 3 > entries[index].depth)
4545
entries[index] = TEntry(hash, score, move, depth, flag, seval);

src/uci.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
#include "polyglot.h"
2828
#include <cstring>
2929

30-
const char *version = "8.36";
30+
const char *version = "8.37";
3131

3232
namespace
3333
{

0 commit comments

Comments
 (0)