Function poirebot::game::pieces::knight::get_knight_moves [−][src]
pub fn get_knight_moves(
board: &Board,
color: Color,
origin: Position
) -> BitBoardⓘ
Generates a bitboard with the moves (steps) that can be performed by the knight at the given position.
Note: this doesn’t verify if the move is 100% legal, i.e. it could put the knight in check. However, it does prevent the knight from capturing its own pieces.