pub type Piece = usize;
Expand description
Piece type represents a chess piece as an unsigned int
Trait Implementations§
Source§impl PieceTrait for Piece
impl PieceTrait for Piece
Source§fn fen_symbol(self) -> &'static str
fn fen_symbol(self) -> &'static str
returns the fen symbol for the piece
Source§fn san_symbol(self) -> &'static str
fn san_symbol(self) -> &'static str
returns the san symbol for the piece ( capital piece letter )
Source§fn uci_symbol(self) -> &'static str
fn uci_symbol(self) -> &'static str
returns the uci symbol of the piece ( lower case )
Source§fn san_letter(self) -> &'static str
fn san_letter(self) -> &'static str
returns the san letter of the piece ( upper case )