engine/bitboard.h

Bit manipulation and board representation.

Functions

static inline void setBit(U64 &bitboard, int square)
static inline U64 getBit(U64 bitboard, int square)
static inline void popBit(U64 &bitboard, int square)
static inline int countBits(U64 bitboard)
static inline int getLSBindex(U64 bitboard)
void printBitboard(U64 bitboard)

Variables

const U64 notAfile
const U64 notHfile
const U64 notHGfile
const U64 notABfile
U64 bitboards[12]
U64 occupancy[3]
int side
int enpassant
int castle
U64 hashKey
U64 repetitionTable[1000]
int repetitionIndex
int ply
int halfmoveClock
int fullmoveNumber