[][src]Function chess::line

Important traits for BitBoard
pub fn line(sq1: Square, sq2: Square) -> BitBoard

Get a line (extending to infinity, which in chess is 8 squares), given two squares. This line does extend past the squares.