pub const fn get_between_rays(from: Square, to: Square) -> BitBoard
Expand description

Get all squares between two squares, if reachable via a ray.

§Examples

let rays = get_between_rays(Square::B4, Square::G4);
assert_eq!(rays, bitboard! {
    . . . . . . . .
    . . . . . . . .
    . . . . . . . .
    . . . . . . . .
    . . X X X X . .
    . . . . . . . .
    . . . . . . . .
    . . . . . . . .
});