kinda works now

This commit is contained in:
Jannes Höke
2016-02-29 01:53:59 +01:00
parent 29a6ac8b07
commit 5465fca34f
8 changed files with 119 additions and 17 deletions

14
card.py
View File

@ -51,8 +51,22 @@ class Card(object):
return '%s_%s' % (self.color, self.value)
def __repr__(self):
if self.special:
return self.special
'''
if self.special is CHOOSE:
return "Colorchooser"
elif self.special is DRAW_FOUR:
return "Draw four"
'''
else:
return self.color + " - " + self.value
return str(self)
def __eq__(self, other):
return str(self) == str(other)
def get_image_link(self):
return IMAGE_PATTERN % str(self)