diff --git a/BitBoard.h b/BitBoard.h index d245764..4679fe2 100644 --- a/BitBoard.h +++ b/BitBoard.h @@ -63,11 +63,12 @@ public: constexpr void clear(unsigned i); constexpr void set(unsigned i); + BitBoard left(unsigned i) const; BitBoard right(unsigned i) const; + static BitBoard fromIndex(unsigned i); - static BitBoard genShift(BitBoard x, int s); static BitBoard getRank(int r); // Returns the number of trailing 0-bits in b. @@ -77,6 +78,7 @@ public: private: U64 mBoard = {}; + static BitBoard genShift(BitBoard x, int s); }; // Relational operators diff --git a/Board.hpp b/Board.hpp index 9462616..085c37a 100644 --- a/Board.hpp +++ b/Board.hpp @@ -13,10 +13,6 @@ #define BB_NUM 8 // 6 pieces, 2 colors -enum class BoardIndex { - -}; - class Board { public: