예제 #1
0
 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
예제 #2
0
 def encode(self) -> str:
     return encode_deck(self.cards)