hanabi.py add attribute to retrieve max score of instance

This commit is contained in:
Maximilian Keßler 2023-05-06 20:13:36 +02:00
parent 303158bc25
commit 9fe456f0f9
Signed by: max
GPG Key ID: BCC5A619923C0BA5

View File

@ -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):