aboutsummaryrefslogtreecommitdiff
path: root/src/uci.hpp
diff options
context:
space:
mode:
authorAdam <adammegarules1@gmail.com>2026-07-29 11:16:11 +0200
committerAdam <adammegarules1@gmail.com>2026-07-29 11:16:11 +0200
commit2f512931427121ea287cf2812ddf0b3fd6d7b83c (patch)
tree76c938fe92604e8c22f6af784b886d2c68beeee6 /src/uci.hpp
parent165fecafb6703edbec84fca6410c3f7f4005c4cc (diff)
saving cache to dish
Diffstat (limited to 'src/uci.hpp')
-rw-r--r--src/uci.hpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/uci.hpp b/src/uci.hpp
index 9352c48..7b6dca4 100644
--- a/src/uci.hpp
+++ b/src/uci.hpp
@@ -3,6 +3,7 @@
#include "board.hpp"
#include <string>
+#include <unordered_map>
Move UciToMove(std::string uci);
void LogUci(const std::string &message);
@@ -10,4 +11,9 @@ void Uci();
Game initBoard(
std::string startingFEN,
std::unordered_map<uint64_t, TranspositionsEntry> *transPositions);
+void SaveTranspositionTable(
+ const std::unordered_map<uint64_t, TranspositionsEntry> &table);
+bool LoadTable(
+ const std::string &filename,
+ std::unordered_map<uint64_t, TranspositionsEntry> *transpositions);
#endif /* SRC_UCI_H_ */