Define a color for cards
This commit is contained in:
parent
1abb0e0755
commit
9b7cdcef10
@ -12,58 +12,76 @@ class Card():
|
|||||||
self.score = score
|
self.score = score
|
||||||
|
|
||||||
def __repr__(self):
|
def __repr__(self):
|
||||||
return type(self).__name__ + "(%d)"%self.score
|
return "\033[%dm%s\033[1m(%d)\033[0m"%(self.color, type(self).__name__, self.score)
|
||||||
|
|
||||||
|
|
||||||
class Chasseresse(Card):
|
class Chasseresse(Card):
|
||||||
|
|
||||||
|
color = 91
|
||||||
|
|
||||||
def __init__(self, score):
|
def __init__(self, score):
|
||||||
Card.__init__(self, score)
|
Card.__init__(self, score)
|
||||||
|
|
||||||
|
|
||||||
class DragonCorail(Card):
|
class DragonCorail(Card):
|
||||||
|
|
||||||
|
color = 92
|
||||||
|
|
||||||
def __init__(self, score):
|
def __init__(self, score):
|
||||||
Card.__init__(self, score)
|
Card.__init__(self, score)
|
||||||
|
|
||||||
|
|
||||||
class Pearl(Card):
|
class Pearl(Card):
|
||||||
|
|
||||||
|
color = 93
|
||||||
|
|
||||||
def __init__(self, score):
|
def __init__(self, score):
|
||||||
Card.__init__(self, score)
|
Card.__init__(self, score)
|
||||||
|
|
||||||
|
|
||||||
class Witch(Card):
|
class Witch(Card):
|
||||||
|
|
||||||
|
color = 94
|
||||||
|
|
||||||
def __init__(self, score):
|
def __init__(self, score):
|
||||||
Card.__init__(self, score)
|
Card.__init__(self, score)
|
||||||
|
|
||||||
|
|
||||||
class DragonPetrified(Card):
|
class DragonPetrified(Card):
|
||||||
|
|
||||||
|
color = 95
|
||||||
|
|
||||||
def __init__(self, score):
|
def __init__(self, score):
|
||||||
Card.__init__(self, score)
|
Card.__init__(self, score)
|
||||||
|
|
||||||
|
|
||||||
class Golem(Card):
|
class Golem(Card):
|
||||||
|
|
||||||
|
color = 91
|
||||||
|
|
||||||
def __init__(self, score):
|
def __init__(self, score):
|
||||||
Card.__init__(self, score)
|
Card.__init__(self, score)
|
||||||
|
|
||||||
|
|
||||||
class Guardian(Card):
|
class Guardian(Card):
|
||||||
|
|
||||||
|
color = 92
|
||||||
|
|
||||||
def __init__(self, score):
|
def __init__(self, score):
|
||||||
Card.__init__(self, score)
|
Card.__init__(self, score)
|
||||||
|
|
||||||
|
|
||||||
class Horser(Card):
|
class Horser(Card):
|
||||||
|
|
||||||
|
color = 93
|
||||||
|
|
||||||
def __init__(self, score):
|
def __init__(self, score):
|
||||||
Card.__init__(self, score)
|
Card.__init__(self, score)
|
||||||
|
|
||||||
|
|
||||||
class City(Card):
|
class City(Card):
|
||||||
|
|
||||||
|
color = 94
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
Card.__init__(self, 0)
|
Card.__init__(self, 0)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user