Struct pleco::core::bitboard::RandBitBoard [−][src]
pub struct RandBitBoard { /* fields omitted */ }
BitBoard generating structure.
Methods
impl RandBitBoard
[src]
impl RandBitBoard
pub fn many(self, amount: usize) -> Vec<BitBoard>
[src]
pub fn many(self, amount: usize) -> Vec<BitBoard>
Returns a vector of "amount" BitBoards.
ⓘImportant traits for BitBoardpub fn one(self) -> BitBoard
[src]
ⓘImportant traits for BitBoard
pub fn one(self) -> BitBoard
Returns a singular random BitBoard.
pub fn avg(self, bits: u8) -> Self
[src]
pub fn avg(self, bits: u8) -> Self
Sets the average number of bits in the resulting Bitboard.
pub fn allow_empty(self) -> Self
[src]
pub fn allow_empty(self) -> Self
Allows empty BitBoards to be returned.
pub fn max(self, max: u16) -> Self
[src]
pub fn max(self, max: u16) -> Self
Sets the maximum number of bits in a BitBoard
.
pub fn min(self, min: u16) -> Self
[src]
pub fn min(self, min: u16) -> Self
Sets the minimum number of bits in a BitBoard
.
pub fn pseudo_random(self, seed: u64) -> Self
[src]
pub fn pseudo_random(self, seed: u64) -> Self
Sets the generation to use pseudo-random numbers instead of random numbers. The seed is a random number for the random numbers to be generated off of.
Trait Implementations
impl Default for RandBitBoard
[src]
impl Default for RandBitBoard
Auto Trait Implementations
impl Send for RandBitBoard
impl Send for RandBitBoard
impl Sync for RandBitBoard
impl Sync for RandBitBoard