diff options
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_ */ |
