From 8df9e390a71eeb2835eab06ec4b474c8cad63ecd Mon Sep 17 00:00:00 2001 From: Adam Date: Thu, 30 Jul 2026 16:40:17 +0200 Subject: improving bot --- src/board/board.hpp | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) (limited to 'src/board/board.hpp') 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 ThreeFoldMap; std::unordered_map *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 -- cgit v1.2.3