Files
Eleanor/source/tt.cpp
T
2026-01-06 22:44:07 +01:00

13 lines
359 B
C++

#include "tt.h"
void TTable::WriteEntry(U64 &hashKey, int depth, int score, int nodeType, Move bestMove, bool ttpv) {
TTEntry *current = &table[hashKey % table.size()];
current->hashKey = hashKey;
current->nodeType = nodeType;
current->score = score;
current->depth = depth;
current->bestMove = bestMove;
current->ttpv = ttpv;
}