pub fn make_move(&mut self, m: Move) -> Result<(), MoveError> {
        let res = match m {
            Move::Normal { from, to, promote } => self.make_normal_move(from, to, promote)?,
            Move::Drop { to, piece_type } => self.make_drop_move(to, piece_type)?,
        };

        self.move_history.push(res);
        Ok(())
    }
/// Makes the given move. Returns `Err` if the move is invalid or any special condition is met.
Makes the given move. Returns `Err` if the move is invalid or any special condition is met.
Makes the given move . Returns ` Err ` if the move is invalid or any special condition is met .
pub fn make_move(&mut self, m: Move) -> Result<(), MoveError> {
        let res = match m {
            Move::Normal { from, to, promote } => self.make_normal_move(from, to, promote)?,
            Move::Drop { to, piece_type } => self.make_drop_move(to, piece_type)?,
        };
        self.move_history.push(res);
        Ok(())
    }
pub fn make_move ( & mut self , m : Move ) -> Result < ( ) , MoveError > { let res = match m { Move :: Normal { from , to , promote } => self . make_normal_move ( from , to , promote ) ? , Move :: Drop { to , piece_type } => self . make_drop_move ( to , piece_type ) ? , } ; self . move_history . push ( res ) ; Ok ( ( ) ) }
Makes the given move.
Makes the given move .
&mut self
m
Move