[][src]Type Definition rustenginelib::piece::Piece

type Piece = usize;

Piece type represents a chess piece as an unsigned int

Trait Implementations

impl PieceTrait for Piece[src]

fn color(self) -> Color[src]

returns the color of the piece

fn figure(self) -> Figure[src]

returns the figure of the piece

fn fen_symbol(self) -> &'static str[src]

returns the fen symbol for the piece

fn san_symbol(self) -> &'static str[src]

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

fn uci_symbol(self) -> &'static str[src]

returns the uci symbol of the piece ( lower case )

fn san_letter(self) -> &'static str[src]

returns the san letter of the piece ( upper case )