mirror of
https://github.com/neogeek23/Dominion-Strategy-Simulator.git
synced 2026-02-04 02:58:16 +00:00
15 lines
341 B
Python
15 lines
341 B
Python
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()
|
|
|
|
def print(self):
|
|
if len(self.get_supply()) > 0:
|
|
print("Discard shows " + str(self.get_top_card()) + " face up.")
|
|
else:
|
|
print("Discard is empty.")
|