[][src]Function pleco::helper::prelude::bishop_moves

Important traits for BitBoard
pub fn bishop_moves(occupied: BitBoard, sq: SQ) -> BitBoard

Generate Bishop Moves BitBoard from a bishop square and all occupied squares on the board. This function will return captures to pieces on both sides. The resulting BitBoard must be AND'd with the inverse of the intending moving player's pieces.