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()) assert(self.is_standard())
return constants.VARIANT_IDS_STANDARD_DISTRIBUTIONS[self.num_suits][self.num_dark_suits] 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 # returns True if the instance has values matching hanabi-live rules
# (i.e. standard + extra variants with 5 / 6 suits) # (i.e. standard + extra variants with 5 / 6 suits)
def is_standard(self): def is_standard(self):