connected TT to search

This commit is contained in:
rektdie committed 2025-02-27 03:47:56 +01:00
1 parent f3cedadbb4
commit defba40979
4 files changed
+28 -10

No files matched your search

+3 -3
View File
@@ -79,7 +79,7 @@ U64 GetHashKey(Board &board) {
return key;
}
int ReadEntry(U64 &hashKey, int depth, int alpha, int beta) {
SearchResults ReadEntry(U64 &hashKey, int depth, int alpha, int beta) {
TTEntry *current = &TTable[hashKey % hashSize];
if (current->hashKey == hashKey) {
@@ -94,8 +94,8 @@ int ReadEntry(U64 &hashKey, int depth, int alpha, int beta) {
}
}
// returning unknown value
return 10000;
// returning invalid value
return invalidEntry;
}
void WriteEntry(U64 &hashKey, int depth, int score, int nodeType) {