def __init__(self,
                 end_loc,
                 piece,
                 status,
                 start_loc,
                 promoted_to_piece=None):
        """
        Constructor to create move using ``Location``

        :type: end_loc: Location
        :type: piece: Piece
        :type: status: int
        """
        self._end_loc = end_loc
        self._status = status
        self._piece = piece
        self._start_loc = start_loc
        self.color = piece.color
        self.promoted_to_piece = promoted_to_piece
def __init__ ( self , end_loc , piece , status , start_loc , promoted_to_piece = None ) : self . _end_loc = end_loc self . _status = status self . _piece = piece self . _start_loc = start_loc self . color = piece . color self . promoted_to_piece = promoted_to_piece
Constructor to create move using ``Location``

        :type: end_loc: Location
        :type: piece: Piece
        :type: status: int