aboutsummaryrefslogtreecommitdiff
path: root/src/bitboards.hpp
diff options
context:
space:
mode:
authorAdam <adammegarules1@gmail.com>2026-07-31 08:52:25 +0200
committerAdam <adammegarules1@gmail.com>2026-07-31 08:52:25 +0200
commit9475a738f81396baecfb139b2ceda360320224c8 (patch)
tree51298cd16efdd694aae547697efa83521a9b7cb4 /src/bitboards.hpp
parent0528ed43bb13edd89dfa8a38b9bfca6ba7fd83d6 (diff)
making bitboards file
Diffstat (limited to 'src/bitboards.hpp')
-rw-r--r--src/bitboards.hpp40
1 files changed, 40 insertions, 0 deletions
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 <cstdint>
+#include <unordered_map>
+
+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_ */