diff options
| author | Adam <adammegarules1@gmail.com> | 2026-07-29 08:59:01 +0200 |
|---|---|---|
| committer | Adam <adammegarules1@gmail.com> | 2026-07-29 08:59:01 +0200 |
| commit | 9ec09d7151ea8fa78d082ab931691a5db2f1be6a (patch) | |
| tree | eb6beb6132160f8d7f82e295028a532998771eb9 /src/uci.cpp | |
| parent | 815abe7aabf47814dc391d19dedd6e9b23f100a1 (diff) | |
making cache have depth
Diffstat (limited to 'src/uci.cpp')
| -rw-r--r-- | src/uci.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/uci.cpp b/src/uci.cpp index b4e384a..b45df57 100644 --- a/src/uci.cpp +++ b/src/uci.cpp @@ -45,8 +45,9 @@ Move UciToMove(string uci) { return {from, to}; } -Game initBoard(string startingFEN, - std::unordered_map<uint64_t, float> *transPositions) { +Game initBoard( + string startingFEN, + std::unordered_map<uint64_t, TranspositionsEntry> *transPositions) { Game b{}; b.enPassant = IndexToPosition(0); // default value b.canEnpassant = false; @@ -71,7 +72,7 @@ Game initBoard(string startingFEN, return b; }; void Uci() { - unordered_map<uint64_t, float> transpositions = {}; + unordered_map<uint64_t, TranspositionsEntry> transpositions = {}; Game game = initBoard("rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1", &transpositions); |
