[][src]Struct pleco::board::perft::PerftNodes

pub struct PerftNodes {
    pub nodes: u64,
    pub captures: u64,
    pub en_passant: u64,
    pub castles: u64,
    pub promotions: u64,
    pub checks: u64,
    pub checkmates: u64,
}

Holds all information about the number of nodes counted.

Fields

nodes: u64

Total number of nodes counted.

captures: u64

Number of capturing moves, including en-passant moves.

en_passant: u64

Number of En-Passant moves.

castles: u64

Number of Castles.

promotions: u64

The number of promotions

checks: u64

The number of checking moves.

checkmates: u64

The number of moves resulting in a checkmate.

Methods

impl PerftNodes[src]

pub fn check(
    &self,
    nodes: u64,
    captures: u64,
    en_passant: u64,
    castles: u64,
    promotions: u64,
    checks: u64,
    checkmates: u64
)
[src]

Checks for the correct number of nodes in each category. If the results don't match, panics with an error-message containing the failed checks.

Trait Implementations

impl Default for PerftNodes[src]

Auto Trait Implementations

impl Send for PerftNodes

impl Sync for PerftNodes

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.