added bitboard overloads + removed GetBoard()

This commit is contained in:
rektdie committed 2024-06-18 19:15:14 +02:00
1 parent a23918ab8d
commit d566c6d0e4
5 files changed
+127 -97

No files matched your search

+11 -2
View File
@@ -12,7 +12,6 @@ public:
Bitboard(const U64& board)
: m_board(board) {}
U64 GetBoard() const;
bool IsSet(int square) const;
void SetBit(int square);
void PopBit(int square);
@@ -31,11 +30,21 @@ public:
Bitboard operator^(const Bitboard& other) const;
Bitboard operator*(const Bitboard& other) const;
Bitboard operator&(const uint64_t& other) const;
Bitboard operator|(const uint64_t& other) const;
Bitboard operator^(const uint64_t& other) const;
Bitboard operator*(const uint64_t& other) const;
Bitboard operator&=(const Bitboard& other);
Bitboard operator|=(const Bitboard& other);
Bitboard operator^=(const Bitboard& other);
Bitboard operator&=(const uint64_t& other);
Bitboard operator|=(const uint64_t& other);
Bitboard operator^=(const uint64_t& other);
Bitboard operator<<(int other);
Bitboard operator>>(int other);
Bitboard operator~();
};
operator uint64_t();
};