From 75b0f95e0b71004f9bacce4f1f5f88f1ce40289e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maximilian=20Ke=C3=9Fler?= Date: Sat, 24 Jun 2023 17:23:49 +0200 Subject: [PATCH] add max score to variants --- variants.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/variants.py b/variants.py index b9c75ff..3dd95e6 100644 --- a/variants.py +++ b/variants.py @@ -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(