Added popCount function to bitboards
This commit is contained in:
1 parent
f7d65e8af8
commit
b4bc91ffc2
3 files changed
+17
-3
No files matched your search
@@ -17,6 +17,8 @@ public:
|
||||
void SetBit(int square);
|
||||
void PrintBoard() const;
|
||||
|
||||
int popCount() const;
|
||||
|
||||
static Bitboard GetSquare(int square) {
|
||||
return (1ULL << square);
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user