def to_output_string(self):
        if -1 > self.index:
            if self.target is not None:
                return 'summon({0},{1},{2})'.format(self.card.to_output(), self.index, self.target.to_output())
            return 'summon({0},{1})'.format(self.card.to_output(), self.index)
        else:
            if self.target is not None:
                return 'play({0},{1})'.format(self.card.to_output(), self.target.to_output())
            return 'play({0})'.format(self.card.to_output())
dataset/ETHPy150Open danielyule/hearthbreaker/hearthbreaker/serialization/move.py/PlayMove.to_output_string/swapped operands of `>`