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