diff options
| author | Adam <adammegarules1@gmail.com> | 2026-07-31 19:07:24 +0200 |
|---|---|---|
| committer | Adam <adammegarules1@gmail.com> | 2026-07-31 19:07:24 +0200 |
| commit | c437220aab7b908995a87cf958d9a67e54d478cb (patch) | |
| tree | b87f0ce44bc91d6cef834b4e94e01548a7306826 /src/board/board.hpp | |
| parent | a90ba2e3ef8010692d9b94f51ba03d19e7bcb457 (diff) | |
keeping track of were all the pieces are
Diffstat (limited to 'src/board/board.hpp')
| -rw-r--r-- | src/board/board.hpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/board/board.hpp b/src/board/board.hpp index d1e379a..91a38f9 100644 --- a/src/board/board.hpp +++ b/src/board/board.hpp @@ -52,7 +52,8 @@ struct TranspositionsEntry { }; struct Game { Piece pieces[64]; - bool turn = true; // 1 white; 0 black + uint64_t PieceBitboard = 0; // used for quicly iterating over all squares + bool turn = true; // 1 white; 0 black bool whiteCastleKing = false; bool whiteCastleQueen = false; bool blackCastleKing = false; @@ -101,5 +102,6 @@ int PositionToIndex(Position i); UndoMove MakeMove(Move move, Game *g); void UnMakeMove(UndoMove undo, Game *g); -Position FindKing(Game *b, bool white); +Position FindKing(Game *g, bool white); +void UpdateBitboards(Game *g); #endif /* SRC_BOARD_H_ */ |
