Trait shakmaty::Setup [−][src]
pub trait Setup { fn board(&self) -> &Board; fn pockets(&self) -> Option<&Pockets>; fn turn(&self) -> Color; fn castling_rights(&self) -> Bitboard; fn ep_square(&self) -> Option<Square>; fn remaining_checks(&self) -> Option<&RemainingChecks>; fn halfmove_clock(&self) -> u32; fn fullmoves(&self) -> u32; fn us(&self) -> Bitboard { ... } fn our(&self, role: Role) -> Bitboard { ... } fn them(&self) -> Bitboard { ... } fn their(&self, role: Role) -> Bitboard { ... } }
A not necessarily legal position.
Required Methods
fn board(&self) -> &Board
fn pockets(&self) -> Option<&Pockets>
fn turn(&self) -> Color
ⓘImportant traits for Bitboard
fn castling_rights(&self) -> Bitboard
fn ep_square(&self) -> Option<Square>
fn remaining_checks(&self) -> Option<&RemainingChecks>
fn halfmove_clock(&self) -> u32
fn fullmoves(&self) -> u32
Provided Methods
ⓘImportant traits for Bitboard
fn us(&self) -> Bitboard
ⓘImportant traits for Bitboard
fn our(&self, role: Role) -> Bitboard
ⓘImportant traits for Bitboard
fn them(&self) -> Bitboard
ⓘImportant traits for Bitboard
fn their(&self, role: Role) -> Bitboard
Implementors
impl Setup for Chess
impl Setup for Atomic
impl Setup for Giveaway
impl Setup for KingOfTheHill
impl Setup for ThreeCheck
impl Setup for Crazyhouse
impl Setup for RacingKings
impl Setup for Horde
impl Setup for Fen