Function alcibiades::bitsets::bb_diag [] [src]

pub fn bb_diag(square: Square) -> Bitboard

Returns the set of squares on the same diagonal as the given square.

Diagonals go from white's queen-side to black's king-side (A1-H8 for example).

Examples:

assert_eq!(bb_diag(D4), BB_MAIN_DIAG);