[][src]Type Definition rustenginelib::square::Square

type Square = usize;

Square type represents a square of a chess board as an unsigned int

Trait Implementations

impl SquareTrait for Square[src]

fn rank(self) -> Rank[src]

returns the rank of the square

fn file(self) -> File[src]

returns the file of the square

fn uci(self) -> String[src]

returns the UCI representation of the square

fn bitboard(self) -> Bitboard[src]

returns an otherwise empty bitboard with the bit for this square set