Added makefile and rook mask generation
This commit is contained in:
1 parent
9976cb0968
commit
78fe989180
11 files changed
+76
-10
No files matched your search
@@ -0,0 +1,36 @@
|
||||
#pragma once
|
||||
#include "types.h"
|
||||
|
||||
struct Bitboard {
|
||||
private:
|
||||
U64 m_board;
|
||||
public:
|
||||
Bitboard()
|
||||
: m_board(0ULL) {}
|
||||
|
||||
Bitboard(const U64& board)
|
||||
: m_board(board) {}
|
||||
|
||||
U64 GetBoard() const;
|
||||
bool IsSet(int square) const;
|
||||
void SetBit(int square);
|
||||
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~();
|
||||
};
|
||||
Reference in new issue
Block a user