add max score to variants
This commit is contained in:
parent
2ca79dfc6c
commit
75b0f95e0b
1 changed files with 4 additions and 0 deletions
|
@ -218,6 +218,10 @@ class Variant:
|
|||
return True
|
||||
return suit.color_touches(self.colors[value])
|
||||
|
||||
@property
|
||||
def max_score(self):
|
||||
return self.num_suits * 5
|
||||
|
||||
@staticmethod
|
||||
def from_db(var_id):
|
||||
cur.execute(
|
||||
|
|
Loading…
Reference in a new issue