pub struct ChessTurnEngine { /* private fields */ }
Expand description

Game engine

Implementations

Create and setup a new game

Arguments
  • setup - Game setup

Provide a displayable String of the chessboard

Arguments
  • opt - Display option

Display chessboard on the screen

Arguments
  • opt - Display option

Play provided turn.

Return value
  • Ok - Latest game status.
  • Err - GameError in case turn is not playable.
Arguments
  • turn - Turn provided in chess notation format

Get game status

Undo turn and restore previous board state

Get list of available turns

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.