aboutsummaryrefslogtreecommitdiff
path: root/src/board/board.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/board/board.hpp')
-rw-r--r--src/board/board.hpp23
1 files changed, 14 insertions, 9 deletions
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<uint64_t, TranspositionsEntry> *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;