hashfull info printing

This commit is contained in:
rektdie committed 2025-03-10 19:48:57 +01:00
1 parent e9f5a15d6b
commit baa66c74c1
2 files changed
+17 -3

No files matched your search

+16 -1
View File
@@ -18,12 +18,16 @@ void InitZobrist();
U64 GetHashKey(Board &board);
class TTEntry {
public:
public:
U64 hashKey;
int depth;
int score;
int nodeType;
Move bestMove;
operator U64() {
return hashKey;
}
};
// 5 MB
@@ -51,6 +55,17 @@ public:
return current;
}
// returns used space per mill
int GetUsedPercentage() {
int count = 0;
for (int i = 0; i < 1000; i++) {
if (table[i]) count++;
}
return count;
}
SearchResults ReadEntry(U64 &hashKey, int depth, int alpha, int beta);
void WriteEntry(U64 &hashKey, int depth, int score, int nodeType, Move besteMove);