10class TranspositionTable {
16 static constexpr int LOG_2_SIZE = 20;
19 enum NodeType { NONE = 0, EXACT = 1, LOWER = 2, UPPER = 3 };
23 int8_t searchDepth{0};
27 TranspositionTable(
const int log_2_size = LOG_2_SIZE) {
28 tableSize = UINT64_C(1) << log_2_size;
29 table = std::make_unique<Entry[]>(tableSize);
32 inline Entry* get(
const Board& b) {
38 return &table[b.hash() & (tableSize - 1)];
42 std::unique_ptr<Entry[]> table;