Function poirebot::game::pieces::bishop::get_bishop_sliding_moves[][src]

pub fn get_bishop_sliding_moves(
    board: &Board,
    color: Color,
    origin: &BitBoard
) -> BitBoard

Notable traits for BitBoard

impl Iterator for BitBoard type Item = Position;

Generates a bitboard with the moves that can be performed by the bishops in the given bitboard.

Note that multiple bishops can be passed in the bitboard; to get the moves for individual bishops, iterate over the bishops and call this function with the singular bitboard for each bishop.