Type Alias Figure

Source
pub type Figure = usize;
Expand description

Figure type represents a chess figure as an unsigned int

Trait Implementations§

Source§

impl FigureTrait for Figure

Source§

fn symbol(self) -> &'static str

returns the fen symbol for the figure ( lower case )

Source§

fn base_figure(self) -> Figure

returns the base figure of the figure, same as figure except for lancers, where it is LANCER

Source§

fn lancer_direction(self) -> usize

return the lancer direction of the figure provided that it is a lancer