pub struct Position {
pub bbs: [u64; 8],
pub mailbox: [u8; 64],
pub score: i16,
pub bound: u8,
pub rule50: u8,
pub bm: u16,
pub stm: bool,
pub depth: u8,
pub ep: u8,
pub castle_mask: u64,
}Fields§
§bbs: [u64; 8]§mailbox: [u8; 64]§score: i16§bound: u8§rule50: u8§bm: u16§stm: bool§depth: u8§ep: u8§castle_mask: u64Implementations§
Source§impl Position
impl Position
pub fn piece(&self, idx: usize) -> Pieces
pub fn print(&self)
pub fn push(&mut self, idx: u32, piece: Pieces)
pub fn update_ep(&mut self, newep: usize)
pub fn update_stm(&mut self, newstm: usize)
pub fn turn_stm(&mut self)
pub fn update_castle_rights(&mut self, castle_idx: usize)
pub fn play(&mut self, mv: u16)
pub fn tobullet(&self) -> ChessBoard
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Position
impl RefUnwindSafe for Position
impl Send for Position
impl Sync for Position
impl Unpin for Position
impl UnsafeUnpin for Position
impl UnwindSafe for Position
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more