[−][src]Struct myopic_brain::MutBoardImpl
Implementations
impl MutBoardImpl
[src]
pub fn constraints_impl(
&mut self,
computation_type: MoveComputeType
) -> MoveConstraints
[src]
&mut self,
computation_type: MoveComputeType
) -> MoveConstraints
impl MutBoardImpl
[src]
pub fn passive_control_impl(&mut self) -> BitBoard
[src]
impl MutBoardImpl
[src]
pub fn compute_discoveries(&self) -> RaySet
[src]
impl MutBoardImpl
[src]
pub fn pinned_set_impl(&mut self) -> RaySet
[src]
impl MutBoardImpl
[src]
pub fn termination_status_impl(&mut self) -> Option<Termination>
[src]
impl MutBoardImpl
[src]
pub fn clear_cache(&mut self)
[src]
impl MutBoardImpl
[src]
Implementation of board evolution/devolution via some given Move instance which is assumed to be legal for this board.
pub fn evolve(&mut self, action: &Move) -> Discards
[src]
Public API for evolving a board. All that is required is a reference to a move which is assumed to be legal. The information required to reverse this same move is returned and the board is mutated to the next state.
pub fn devolve(&mut self, action: &Move, discards: Discards)
[src]
Public API for devolving a move, the information lost at evolve time is required as an input here to recover the lost state exactly.
impl MutBoardImpl
[src]
pub fn compute_moves_impl(
&mut self,
computation_type: MoveComputeType
) -> Vec<Move, Global>
[src]
&mut self,
computation_type: MoveComputeType
) -> Vec<Move, Global>
Trait Implementations
impl Clone for MutBoardImpl
[src]
pub fn clone(&self) -> MutBoardImpl
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for MutBoardImpl
[src]
impl MutBoard for MutBoardImpl
[src]
pub fn evolve(&mut self, action: &Move) -> Discards
[src]
pub fn devolve(&mut self, action: &Move, discards: Discards)
[src]
pub fn compute_moves(
&mut self,
computation_type: MoveComputeType
) -> Vec<Move, Global>
[src]
&mut self,
computation_type: MoveComputeType
) -> Vec<Move, Global>
pub fn termination_status(&mut self) -> Option<Termination>
[src]
pub fn in_check(&mut self) -> bool
[src]
pub fn side(&self, side: Side) -> BitBoard
[src]
pub fn sides(&self) -> (BitBoard, BitBoard)
[src]
pub fn hash(&self) -> u64
[src]
pub fn active(&self) -> Side
[src]
pub fn enpassant(&self) -> Option<Square>
[src]
pub fn castle_status(&self, side: Side) -> Option<CastleZone>
[src]
pub fn locs(&self, piece: Piece) -> BitBoard
[src]
pub fn king(&self, side: Side) -> Square
[src]
pub fn piece(&self, location: Square) -> Option<Piece>
[src]
pub fn half_move_clock(&self) -> usize
[src]
pub fn history_count(&self) -> usize
[src]
pub fn remaining_rights(&self) -> CastleZoneSet
[src]
pub fn to_partial_fen(&self, cmps: &[FenComponent]) -> String
[src]
pub fn to_fen(&self) -> String
[src]
pub fn multi_locs(&self, pieces: &[Piece]) -> BitBoard
[src]
pub fn all_pieces(&self) -> BitBoard
[src]
impl PartialEq<MutBoardImpl> for MutBoardImpl
[src]
pub fn eq(&self, other: &MutBoardImpl) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl Reflectable for MutBoardImpl
[src]
pub fn reflect(&self) -> MutBoardImpl
[src]
Auto Trait Implementations
impl RefUnwindSafe for MutBoardImpl
[src]
impl Send for MutBoardImpl
[src]
impl Sync for MutBoardImpl
[src]
impl Unpin for MutBoardImpl
[src]
impl UnwindSafe for MutBoardImpl
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,