added operator overloading to Bitboard class

This commit is contained in:
rektdie committed 2024-05-15 00:54:46 +02:00
1 parent f6c2b6a881
commit 4d8a7f6a2e
5 files changed
+77 -45

No files matched your search

+10 -1
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);
@@ -30,12 +29,22 @@ public:
Bitboard operator|(const Bitboard& other) const;
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();
};