pub type Figure = usize;
Expand description
Figure type represents a chess figure as an unsigned int
Trait Implementations§
Source§impl FigureTrait for Figure
impl FigureTrait for Figure
Source§fn base_figure(self) -> Figure
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
fn lancer_direction(self) -> usize
return the lancer direction of the figure provided that it is a lancer