renamed bitboard file
This commit is contained in:
1 parent
06a5c6fd40
commit
4fc940c57e
4 files changed
+3
-3
No files matched your search
@@ -0,0 +1,50 @@
|
||||
#pragma once
|
||||
#include <iostream>
|
||||
#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 SetBit(int square);
|
||||
void PopBit(int square);
|
||||
void PrintBoard() const;
|
||||
|
||||
int PopCount() const;
|
||||
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;
|
||||
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();
|
||||
};
|
||||
Reference in new issue
Block a user