Card repr added
This commit is contained in:
@@ -65,6 +65,9 @@ class Card():
|
||||
def __str__(self):
|
||||
return '{}_{}'.format(self.color.name, self.value.name)
|
||||
|
||||
def __repr__(self):
|
||||
return '<Card {}_{}>'.format(self.color.name, self.value.name)
|
||||
|
||||
cards = [Card(color, value) for value in Card_values for color in Card_colors]
|
||||
|
||||
# for series_number in range(4): # 4 hry
|
||||
|
||||
Reference in New Issue
Block a user