[][src]Trait rustenginelib::square::MoveTrait

pub trait MoveTrait {
    fn ft(from_sq: Square, to_sq: Square) -> Move;
fn from_sq(self) -> Square;
fn to_sq(self) -> Square;
fn uci(self) -> String; }

MoveTrait adds methods to Move

Required methods

fn ft(from_sq: Square, to_sq: Square) -> Move

returns a move from from square and to square

fn from_sq(self) -> Square

returns from square of move

fn to_sq(self) -> Square

returns to square of move

fn uci(self) -> String

return uci representation of move

Loading content...

Implementors

impl MoveTrait for Move[src]

fn ft(from_sq: Square, to_sq: Square) -> Move[src]

returns a move from from square and to square

fn from_sq(self) -> Square[src]

returns from square of move

fn to_sq(self) -> Square[src]

returns to square of move

fn uci(self) -> String[src]

return uci representation of move

Loading content...