Struct shakmaty::Board[][src]

pub struct Board { /* fields omitted */ }

Piece positions on a board.

Examples

let board = Board::new();
// r n b q k b n r
// p p p p p p p p
// . . . . . . . .
// . . . . . . . .
// . . . . . . . .
// . . . . . . . .
// P P P P P P P P
// R N B Q K B N R

assert_eq!(board.piece_at(Square::E8), Some(Black.king()));

Methods

impl Board
[src]

Important traits for Bitboard

Important traits for Bitboard

Important traits for Bitboard

Important traits for Bitboard

Important traits for Bitboard

Important traits for Bitboard

Important traits for Bitboard

Important traits for Bitboard

Important traits for Bitboard

Important traits for Bitboard

Important traits for Bitboard

Bishops, rooks and queens.

Important traits for Bitboard

Pawns, knights and kings.

Important traits for Bitboard

Important traits for Bitboard

The (unique, unpromoted) king of the given side.

Important traits for Bitboard

Important traits for Bitboard

Important traits for Bitboard

Important traits for Bitboard

Important traits for Bitboard

Important traits for Pieces

Trait Implementations

impl Clone for Board
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Eq for Board
[src]

impl PartialEq for Board
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Default for Board
[src]

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

impl Debug for Board
[src]

Formats the value using the given formatter. Read more

impl Extend<(Square, Piece)> for Board
[src]

Extends a collection with the contents of an iterator. Read more

impl FromIterator<(Square, Piece)> for Board
[src]

Creates a value from an iterator. Read more

impl FromStr for Board
[src]

The associated error which can be returned from parsing.

Parses a string s to return a value of this type. Read more

impl Display for Board
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for Board

impl Sync for Board