Function shakmaty::attacks::ray
[−]
[src]
pub fn ray(a: Square, b: Square) -> Bitboard
The rank, file or diagonal with the two squares (or an empty Bitboard
if they are not aligned).
let ray = attacks::ray(square::E2, square::G4); // . . . . . . . . // . . . . . . . . // . . . . . . . . // . . . . . . . 1 // . . . . . . 1 . // . . . . . 1 . . // . . . . 1 . . . // . . . 1 . . . .