[−][src]Trait rustenginelib::bitboard::BitboardTrait
Bitboard trait adds functions to an u64 that allow treating it as a chess engine bitboard
Required methods
fn pretty_print_string(&self) -> String
returns a string that represents the bitboard as pretty print string
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
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
fn variation_count(self) -> usize
returns the number of ways the 1 bits in the bitboard can be set to either 1 or 0
Implementors
impl BitboardTrait for Bitboard
[src]
BitboardTrait adds methods to Bitboard
fn pretty_print_string(&self) -> String
[src]
returns a string that represents the bitboard as pretty print string
fn pop_bitboard(&mut self) -> (Bitboard, bool)
[src]
pops a bitboard with only one bit set from the bitboard and returns it together with a bool indicating whether the pop was succesful
fn pop_square(&mut self) -> (Square, bool)
[src]
pops a square from the bitboard and returns it together with a bool indicating whether the pop was succesful
fn variation_count(self) -> usize
[src]
returns the number of ways the 1 bits in the bitboard can be set to either 1 or 0