pub struct ChessTurnEngine { /* private fields */ }Expand description
Game engine
Implementations§
Source§impl ChessTurnEngine
impl ChessTurnEngine
Sourcepub fn display(&self, opt: DisplayOption) -> String
pub fn display(&self, opt: DisplayOption) -> String
Sourcepub fn display_on_screen(&self, opt: DisplayOption)
pub fn display_on_screen(&self, opt: DisplayOption)
Sourcepub fn undo_turn(&mut self) -> Result<(), GameError>
pub fn undo_turn(&mut self) -> Result<(), GameError>
Undo turn and restore previous board state
Sourcepub fn available_turns(&self) -> &Vec<AvailableTurn>
pub fn available_turns(&self) -> &Vec<AvailableTurn>
Get list of available turns
Auto Trait Implementations§
impl Freeze for ChessTurnEngine
impl RefUnwindSafe for ChessTurnEngine
impl Send for ChessTurnEngine
impl Sync for ChessTurnEngine
impl Unpin for ChessTurnEngine
impl UnwindSafe for ChessTurnEngine
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