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/board.hpp | |
| parent | 815abe7aabf47814dc391d19dedd6e9b23f100a1 (diff) | |
making cache have depth
Diffstat (limited to 'src/board.hpp')
| -rw-r--r-- | src/board.hpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/board.hpp b/src/board.hpp index 687510e..4f04783 100644 --- a/src/board.hpp +++ b/src/board.hpp @@ -35,7 +35,10 @@ struct Position { bool operator==(const Position &) const = default; }; - +struct TranspositionsEntry { + int depth; + float Eval; +}; struct Game { Piece pieces[64]; bool turn = 1; // 1 white; 0 black @@ -46,7 +49,7 @@ struct Game { bool canEnpassant = 0; GameState state = TURN; std::unordered_map<uint64_t, int> ThreeFoldMap; - std::unordered_map<uint64_t, float> *Transpositions = nullptr; + std::unordered_map<uint64_t, TranspositionsEntry> *Transpositions = nullptr; }; struct Move { |
