Function alcibiades::bitsets::bb_anti_diag [] [src]

pub fn bb_anti_diag(square: Square) -> Bitboard

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

Anti-diagonals go from white's king-side to black's queen-side (H1-A8 for example).

Examples:

assert_eq!(bb_anti_diag(E4), BB_MAIN_ANTI_DIAG);