[][src]Struct legal_chess::game::Game

pub struct Game { /* fields omitted */ }

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]

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.