Function chess_move_gen::legal_moves [] [src]

pub fn legal_moves<L: MoveList>(position: &Position, list: &mut L) -> bool

Adds legal moves to the provided MoveList. Returns true if mover is in check