Function poirebot::game::pieces::sliding::get_sliding_diagonal_moves [−][src]
pub fn get_sliding_diagonal_moves(
board: &Board,
color: Color,
origins: &BitBoard
) -> BitBoardⓘ
Generates a bitboard with the diagonal moves that can be performed by the sliding pieces in the given bitboard.
Note that multiple pieces can be passed in the bitboard; to get the moves for individual pieces, iterate over the pieces and call this function with the singular bitboard for each piece.