From ee7815bad917cf880c147186a01679fb7ce46a8e Mon Sep 17 00:00:00 2001 From: Adam Date: Fri, 31 Jul 2026 20:11:01 +0200 Subject: making stricter cmake list and then fixing bug it found --- src/board/board.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/board/board.hpp') diff --git a/src/board/board.hpp b/src/board/board.hpp index 7a9779a..5d0d913 100644 --- a/src/board/board.hpp +++ b/src/board/board.hpp @@ -27,8 +27,8 @@ struct Piece { }; struct Position { - uint8_t rank = 0; - uint8_t file = 0; + int rank = 0; + int file = 0; bool operator==(const Position &) const = default; }; @@ -58,8 +58,8 @@ struct Game { bool whiteCastleQueen = false; bool blackCastleKing = false; bool blackCastleQueen = false; - uint8_t halfMoveClock = 0; - uint16_t MoveClock = 0; + int halfMoveClock = 0; + int MoveClock = 0; Position enPassant; bool canEnpassant = false; GameState state = TURN; -- cgit v1.2.3