[][src]Type Definition rustenginelib::bitboard::Bitboard

type Bitboard = u64;

Bitboard type represents the squares of a 8x8 chess board as bits of an unsigned 64 bit integer

Trait Implementations

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