aboutsummaryrefslogtreecommitdiff
path: root/src/bitboards.hpp
diff options
context:
space:
mode:
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_ */