pub type Bitboard = u64;
Expand description
Bitboard type represents the squares of a 8x8 chess board as bits of an unsigned 64 bit integer
Trait Implementations§
Source§impl BitboardTrait for Bitboard
BitboardTrait adds methods to Bitboard
impl BitboardTrait for Bitboard
BitboardTrait adds methods to Bitboard
Source§fn pretty_print_string(&self) -> String
fn pretty_print_string(&self) -> String
returns a string that represents the bitboard as pretty print string
Source§fn pop_bitboard(&mut self) -> (Bitboard, bool)
fn pop_bitboard(&mut self) -> (Bitboard, bool)
pops a bitboard with only one bit set from the bitboard and returns it together with a bool indicating whether the pop was succesful
Source§fn pop_square(&mut self) -> (Square, bool)
fn pop_square(&mut self) -> (Square, bool)
pops a square from the bitboard and returns it together with a bool indicating whether the pop was succesful
Source§fn variation_count(self) -> usize
fn variation_count(self) -> usize
returns the number of ways the 1 bits in the bitboard can be set to either 1 or 0