add max score to variants

This commit is contained in:
Maximilian Keßler 2023-06-24 17:23:49 +02:00
parent 2ca79dfc6c
commit 75b0f95e0b
Signed by: max
GPG key ID: BCC5A619923C0BA5

View file

@ -218,6 +218,10 @@ class Variant:
return True return True
return suit.color_touches(self.colors[value]) return suit.color_touches(self.colors[value])
@property
def max_score(self):
return self.num_suits * 5
@staticmethod @staticmethod
def from_db(var_id): def from_db(var_id):
cur.execute( cur.execute(