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