Function poirebot::game::pieces::get_castling_rook_move[][src]

pub fn get_castling_rook_move(king_move: &Move) -> Option<Move>

When the king moves, find whether it was a castling action. If it is a castling move, return the corresponding Move for the rook.