Function chess::line[][src]

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

Notable traits for BitBoard

impl Iterator for BitBoard type Item = Square;

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