[−][src]Struct legal_chess::game::Game
Implementations
impl Game
[src]
pub fn new() -> Self
[src]
pub fn undo_last_move(&mut self)
[src]
pub fn make_move(&mut self, mv: ChessMove)
[src]
pub fn from_game_arr(game_arr: &[u8]) -> Self
[src]
pub fn to_game_arr(&self) -> [u8; 73]
[src]
pub fn board(&self) -> &Board
[src]
pub fn en_passant(&self) -> &Option<Position>
[src]
pub fn side_to_move(&self) -> &Color
[src]
pub fn castling_rights_white(&self) -> (bool, bool)
[src]
pub fn castling_rights_black(&self) -> (bool, bool)
[src]
pub fn half_moves(&self) -> u16
[src]
pub fn full_moves(&self) -> u16
[src]
pub fn current_king_position(&self) -> Position
[src]
pub fn legal_moves(&self) -> Vec<ChessMove>
[src]
Auto Trait Implementations
impl !RefUnwindSafe for Game
impl !Send for Game
impl !Sync for Game
impl Unpin for Game
impl !UnwindSafe for Game
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, 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>,