From 9ec09d7151ea8fa78d082ab931691a5db2f1be6a Mon Sep 17 00:00:00 2001 From: Adam Date: Wed, 29 Jul 2026 08:59:01 +0200 Subject: making cache have depth --- src/board.hpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/board.hpp') 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 ThreeFoldMap; - std::unordered_map *Transpositions = nullptr; + std::unordered_map *Transpositions = nullptr; }; struct Move { -- cgit v1.2.3