From a550620aa894e218a738b62b9ecd042b03f7858f Mon Sep 17 00:00:00 2001 From: Adam Date: Fri, 31 Jul 2026 12:11:58 +0200 Subject: changes --- src/board/board.hpp | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) (limited to 'src/board/board.hpp') diff --git a/src/board/board.hpp b/src/board/board.hpp index 0b92798..d1e379a 100644 --- a/src/board/board.hpp +++ b/src/board/board.hpp @@ -32,9 +32,23 @@ struct Position { bool operator==(const Position &) const = default; }; +struct Move { + Position From; + Position To; + + PieceType promotion = NONEPIECE; + bool operator==(const Move &other) const { + return From == other.From && To == other.To && promotion == other.promotion; + } +}; + +enum Flag { EXACT, LOWERBOUND, UPPERBOUND }; + struct TranspositionsEntry { int depth; int Eval; + Flag flag; + Move bestMove = {}; }; struct Game { Piece pieces[64]; @@ -52,15 +66,6 @@ struct Game { std::unordered_map *Transpositions = nullptr; }; -struct Move { - Position From; - Position To; - - PieceType promotion = NONEPIECE; - bool operator==(const Move &other) const { - return From == other.From && To == other.To && promotion == other.promotion; - } -}; struct UndoMove { Piece movedPiece; Piece capturedPiece; -- cgit v1.2.3