Type Alias Piece

Source
pub type Piece = usize;
Expand description

Piece type represents a chess piece as an unsigned int

Trait Implementations§

Source§

impl PieceTrait for Piece

Source§

fn color(self) -> Color

returns the color of the piece

Source§

fn figure(self) -> Figure

returns the figure of the piece

Source§

fn fen_symbol(self) -> &'static str

returns the fen symbol for the piece

Source§

fn san_symbol(self) -> &'static str

returns the san symbol for the piece ( capital piece letter )

Source§

fn uci_symbol(self) -> &'static str

returns the uci symbol of the piece ( lower case )

Source§

fn san_letter(self) -> &'static str

returns the san letter of the piece ( upper case )