diff options
| author | Adam <adammegarules1@gmail.com> | 2026-07-27 10:26:54 +0200 |
|---|---|---|
| committer | Adam <adammegarules1@gmail.com> | 2026-07-27 10:26:54 +0200 |
| commit | 658a797ec8cb5b6d8607fac089e036685f2a3958 (patch) | |
| tree | 2de2efc25079b74ab4cf8cdcba9ea5c4e0469ece /src/board.hpp | |
| parent | 9b1665430fd0379db92000740c7a70045baa1746 (diff) | |
adding enpassant
Diffstat (limited to 'src/board.hpp')
| -rw-r--r-- | src/board.hpp | 16 |
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; |
