Struct shakmaty::Chess [] [src]

pub struct Chess { /* fields omitted */ }

A standard Chess position.

Trait Implementations

impl Clone for Chess
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Chess
[src]

Formats the value using the given formatter.

impl Default for Chess
[src]

Returns the "default value" for a type. Read more

impl Setup for Chess
[src]

impl Position for Chess
[src]

Plays a move. It is the callers responsibility to ensure the move is legal. Read more

Set up a position. Read more

Generates legal moves. Read more

Generates a subset of legal moves. Read more

Tests for insufficient winning material.

Checks if the game is over due to a special variant end condition. Read more

Tests special variant winning, losing and drawing conditions.

Tests a move for legality.

Tests if a move is irreversible. Read more

Attacks that a king on square would have to deal with.

Tests the rare case where moving the rook to the other side during castling would uncover a rank attack. Read more

Bitboard of pieces giving check.

Tests for checkmate.

Tests for stalemate.

Tests if the game is over due to checkmate, stalemate, insufficient material or variant end. Read more

The outcome of the game, or None if the game is not over.

Plays a move. Read more