[−][src]Struct shogiutil::Board
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]
&mut self,
from: &Square,
to: &Square,
promote: bool,
color: Color
) -> Result<()>
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 generate_legal_moves(&self) -> Vec<LegalMove>
[src]
pub fn rotate180(&self) -> Self
[src]
Trait Implementations
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]
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,
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, 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.
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>,