[][src]Struct shogiutil::Board

pub struct Board {
    pub piece_bb: [Bitboard; 15],
    pub pieces_in_hand: [[u8; 15]; 2],
    pub occupied: [Bitboard; 2],
}

Fields

piece_bb: [Bitboard; 15]pieces_in_hand: [[u8; 15]; 2]occupied: [Bitboard; 2]

Implementations

impl Board[src]

pub fn empty() -> Self[src]

pub fn move_between(
    &mut self,
    from: &Square,
    to: &Square,
    promote: bool,
    color: Color
) -> Result<()>
[src]

pub fn push_move(&mut self, mv: Move) -> Result<MoveResult>[src]

pub fn push_hand(&mut self, piece: Piece, color: Color)[src]

pub fn remove_hand(&mut self, color: Color, piece: Piece) -> Result<()>[src]

pub fn remove_piece(&mut self, sq: &Square, color: Color) -> Result<Piece>[src]

pub fn push_piece(&mut self, sq: &Square, color: Color, piece: Piece)[src]

pub fn rotate180(&self) -> Self[src]

Trait Implementations

impl Default for Board[src]

Auto Trait Implementations

impl RefUnwindSafe for Board

impl Send for Board

impl Sync for Board

impl Unpin for Board

impl UnwindSafe for Board

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.