aboutsummaryrefslogtreecommitdiff
path: root/src/board.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/board.hpp')
-rw-r--r--src/board.hpp16
1 files changed, 9 insertions, 7 deletions
diff --git a/src/board.hpp b/src/board.hpp
index 05706ff..44d32ee 100644
--- a/src/board.hpp
+++ b/src/board.hpp
@@ -28,22 +28,24 @@ struct Piece {
bool moved;
};
+struct Position {
+ uint8_t rank;
+ uint8_t file;
+
+ bool operator==(const Position &) const = default;
+};
+
struct Board {
Piece pieces[64];
bool turn; // 1 white; 0 black
std::string castle;
uint8_t halfMoveClock;
uint16_t MoveClock;
+ Position enPassant;
+ bool canEnpassant;
GameState state;
};
-struct Position {
- uint8_t rank;
- uint8_t file;
-
- bool operator==(const Position &) const = default;
-};
-
struct Move {
Position From;
Position To;