Go to the source code of this file.
|
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.
|
|
const int | BitTable [64] |
| Lookup table for bit index extraction.
|
◆ CNT
◆ POP
Value:
int popLSB(U64 *bb)
Pops the least significant 1-bit from a bitboard and returns its index (0–63).
Definition at line 5 of file bitboard.h.
Referenced by isBoardStateValid().
◆ countSetBits()
int countSetBits |
( |
U64 | b | ) |
|
|
extern |
Counts the number of 1-bits in a bitboard.
- Parameters
-
- Returns
- Number of set bits.
Definition at line 21 of file bitboards.cpp.
◆ popLSB()
Pops the least significant 1-bit from a bitboard and returns its index (0–63).
- Parameters
-
bb | Pointer to the bitboard to modify. |
- Returns
- Index (0–63) of the popped bit.
Definition at line 14 of file bitboards.cpp.
References BitTable.
◆ printBitBoard()
void printBitBoard |
( |
U64 | bb | ) |
|
|
extern |
◆ BitTable