reimplemented the GetSquare function + enabled compiler optimization
This commit is contained in:
1 parent
986b49b503
commit
f6c2b6a881
4 files changed
+12
-8
No files matched your search
@@ -22,6 +22,10 @@ public:
|
||||
int getLS1BIndex() const;
|
||||
static Bitboard getOccupancy(int index, Bitboard attackMask);
|
||||
|
||||
static Bitboard GetSquare(int square) {
|
||||
return (1ULL << square);
|
||||
};
|
||||
|
||||
Bitboard operator&(const Bitboard& other) const;
|
||||
Bitboard operator|(const Bitboard& other) const;
|
||||
Bitboard operator^(const Bitboard& other) const;
|
||||
|
||||
Reference in new issue
Block a user