Function shakmaty::attacks::between
[−]
[src]
pub fn between(a: Square, b: Square) -> Bitboard
The squares between the two squares (bounds not included), or an empty
Bitboard
if they are not on the same rank, file or diagonal.
let between = attacks::between(Square::B1, Square::B7); // . . . . . . . . // . 0 . . . . . . // . 1 . . . . . . // . 1 . . . . . . // . 1 . . . . . . // . 1 . . . . . . // . 1 . . . . . . // . 0 . . . . . .