From 9fe456f0f9796e387b67fc403417fb207218f2de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maximilian=20Ke=C3=9Fler?= Date: Sat, 6 May 2023 20:13:36 +0200 Subject: [PATCH] hanabi.py add attribute to retrieve max score of instance --- hanabi.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hanabi.py b/hanabi.py index 794f795..048a003 100644 --- a/hanabi.py +++ b/hanabi.py @@ -137,6 +137,10 @@ class HanabiInstance(): assert(self.is_standard()) return constants.VARIANT_IDS_STANDARD_DISTRIBUTIONS[self.num_suits][self.num_dark_suits] + @property + def max_score(self): + return 5 * self.num_suits + # returns True if the instance has values matching hanabi-live rules # (i.e. standard + extra variants with 5 / 6 suits) def is_standard(self):