From 9475a738f81396baecfb139b2ceda360320224c8 Mon Sep 17 00:00:00 2001 From: Adam Date: Fri, 31 Jul 2026 08:52:25 +0200 Subject: making bitboards file --- src/bitboards.hpp | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 src/bitboards.hpp (limited to 'src/bitboards.hpp') diff --git a/src/bitboards.hpp b/src/bitboards.hpp new file mode 100644 index 0000000..7288f8a --- /dev/null +++ b/src/bitboards.hpp @@ -0,0 +1,40 @@ +#ifndef SRC_BITBOARDS_H_ +#define SRC_BITBOARDS_H_ + +#include "board/board.hpp" +#include +#include + +struct BitBoards { + uint64_t whitePawns; + uint64_t whiteKnights; + uint64_t whiteBishops; + uint64_t whiteRooks; + uint64_t whiteQueens; + uint64_t whiteKing; + + uint64_t blackPawns; + uint64_t blackKnights; + uint64_t blackBishops; + uint64_t blackRooks; + uint64_t blackQueens; + uint64_t blackKing; +}; +struct UndoMoveBitboards { + BitBoards board; + + bool oldTurn; + bool oldCanEnpassant; + Position oldEnPassant; + + bool OldWhiteCastleKing; + bool OldWhiteCastleQueen; + bool OldBlackCastleKing; + bool OldBlackCastleQueen; + + int oldHalfMoveClock; + int oldMoveClock; + uint64_t ZobristKey; + GameState oldState; +}; +#endif /* SRC_BITBOARDS_H_ */ -- cgit v1.2.3