Function poirebot::game::pieces::sliding::get_sliding_straight_moves [−][src]
pub fn get_sliding_straight_moves(
board: &Board,
color: Color,
origins: &BitBoard
) -> BitBoardⓘ
Generates a bitboard with the moves that can be performed by the sliding pieces in the given bitboard, horizontally and vertically.
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.