[][src]Function shakmaty::attacks::between

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.

Example

let between = attacks::between(Square::B1, Square::B7);
// . . . . . . . .
// . 0 . . . . . .
// . 1 . . . . . .
// . 1 . . . . . .
// . 1 . . . . . .
// . 1 . . . . . .
// . 1 . . . . . .
// . 0 . . . . . .