(self)
Gets an UCI string for the move.

        For example a move from A7 to A8 would be `a7a8` or `a7a8q` if it is
        a promotion to a queen. The UCI representatin of null moves is `0000`.
Gets an UCI string for the move.
Gets an UCI string for the move .
def uci(self):
        """
        Gets an UCI string for the move.

        For example a move from A7 to A8 would be `a7a8` or `a7a8q` if it is
        a promotion to a queen. The UCI representatin of null moves is `0000`.
        """
        if self:
            return SQUARE_NAMES[self.from_square] + SQUARE_NAMES[self.to_square] + PIECE_SYMBOLS[self.promotion]
        else:
            return "0000"
def uci ( self ) : if self : return SQUARE_NAMES [ self . from_square ] + SQUARE_NAMES [ self . to_square ] + PIECE_SYMBOLS [ self . promotion ] else : return "0000"