Files uploaded from project

This commit is contained in:
rektdie authored and GitHub committed 2024-02-26 23:31:39 +01:00
1 parent 274db1aefd
commit e46c9bb21f
6 files changed
+386

No files matched your search

+34
View File
@@ -0,0 +1,34 @@
#pragma once
#include "types.h"
struct Bitboard {
private:
U64 m_board;
public:
Bitboard()
: m_board(0ULL) {}
Bitboard(const U64& board)
: m_board(board) {}
bool IsSet(int square) const;
void PrintBoard() const;
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;
Bitboard operator*(const Bitboard& other) const;
Bitboard operator&=(const Bitboard& other);
Bitboard operator|=(const Bitboard& other);
Bitboard operator^=(const Bitboard& other);
Bitboard operator*=(const Bitboard& other);
Bitboard operator<<(int other);
Bitboard operator>>(int other);
Bitboard operator~();
};