from table.supply import Supply class Discard(Supply): def cycle_card(self, deck): while self.get_remaining() > 0: self.transfer_top_card(deck) deck.shuffle()