Chess Engine
C++ chess engine with movegen, bitboards, and Arduino-friendly docs
|
Go to the source code of this file.
Functions | |
int | popLSB (U64 *bb) |
Pops the least significant 1-bit from a bitboard and returns its index (0–63). | |
int | countSetBits (U64 b) |
Counts the number of 1-bits in a bitboard. | |
void | printBitBoard (U64 bb) |
Prints a visual representation of a bitboard to stdout. |
Variables | |
const int | BitTable [64] |
Lookup table for bit index extraction. |
int countSetBits | ( | U64 | b | ) |
Counts the number of 1-bits in a bitboard.
b | Bitboard value. |
Definition at line 21 of file bitboards.cpp.
int popLSB | ( | U64 * | bb | ) |
Pops the least significant 1-bit from a bitboard and returns its index (0–63).
bb | Pointer to the bitboard to modify. |
Definition at line 14 of file bitboards.cpp.
References BitTable.
void printBitBoard | ( | U64 | bb | ) |
const int BitTable[64] |
Lookup table for bit index extraction.
Definition at line 7 of file bitboards.cpp.
Referenced by popLSB().