diff options
| author | Adam <adammegarules1@gmail.com> | 2026-07-30 16:40:17 +0200 |
|---|---|---|
| committer | Adam <adammegarules1@gmail.com> | 2026-07-30 16:40:17 +0200 |
| commit | 8df9e390a71eeb2835eab06ec4b474c8cad63ecd (patch) | |
| tree | 4788195fc373baa22bb349f1532e62d3db9dc99b /src/board/board.hpp | |
| parent | 72646d9beb20e338569d578fee38a37be06faabe (diff) | |
improving bot
Diffstat (limited to 'src/board/board.hpp')
| -rw-r--r-- | src/board/board.hpp | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/src/board/board.hpp b/src/board/board.hpp index bd8efba..b35773d 100644 --- a/src/board/board.hpp +++ b/src/board/board.hpp @@ -18,12 +18,11 @@ enum GameState { TURN, WHITE_WON, BLACK_WON, - STALEMATE, DRAW, }; struct Piece { - bool color = 0; + bool color = false; PieceType type = NONEPIECE; }; @@ -35,7 +34,7 @@ struct Position { }; struct TranspositionsEntry { int depth; - float Eval; + int Eval; }; struct BitBoards { uint64_t whitePawns; @@ -54,7 +53,7 @@ struct BitBoards { }; struct Game { Piece pieces[64]; - bool turn = 1; // 1 white; 0 black + bool turn = true; // 1 white; 0 black bool whiteCastleKing = false; bool whiteCastleQueen = false; bool blackCastleKing = false; @@ -62,7 +61,7 @@ struct Game { uint8_t halfMoveClock = 0; uint16_t MoveClock = 0; Position enPassant; - bool canEnpassant = 0; + bool canEnpassant = false; GameState state = TURN; std::unordered_map<uint64_t, int> ThreeFoldMap; std::unordered_map<uint64_t, TranspositionsEntry> *Transpositions = nullptr; @@ -92,14 +91,14 @@ struct UndoMove { bool oldCanEnpassant; Position oldEnPassant; - bool OldwhiteCastleKing; - bool OldwhiteCastleQueen; - bool OldblackCastleKing; - bool OldblackCastleQueen; + bool OldWhiteCastleKing; + bool OldWhiteCastleQueen; + bool OldBlackCastleKing; + bool OldBlackCastleQueen; int oldHalfMoveClock; int oldMoveClock; - uint64_t zobristKey; + uint64_t ZobristKey; GameState oldState; // castling |
