def encode(self) -> str: '''Encode the content in `self.batches`, set the code and return it.''' self.code = encode_deck( [batch_to_ccac(batch) for batch in self.batches]) return self.code
def encode(self) -> str: return encode_deck(self.cards)