separated playing games from run function

This commit is contained in:
rektdie committed 2025-04-03 03:15:45 +02:00
1 parent 34f5bbdd43
commit c0b76d81bb
5 files changed
+50 -41

No files matched your search

+2 -2
View File
@@ -21,7 +21,7 @@ constexpr U64 maxHash = (64* 1000000) / sizeof(TTEntry);
// 5 MB
constexpr U64 defaultHash = (5 * 1000000) / sizeof(TTEntry);
inline U64 hashSize = defaultHash;
thread_local inline U64 hashSize = defaultHash;
constexpr int invalidEntry = 111111;
@@ -61,4 +61,4 @@ public:
void WriteEntry(U64 &hashKey, int depth, int score, int nodeType, Move besteMove);
};
inline TTable TT;
thread_local inline TTable TT;