hanabi.py add attribute to retrieve max score of instance
This commit is contained in:
parent
303158bc25
commit
9fe456f0f9
1 changed files with 4 additions and 0 deletions
|
@ -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):
|
||||||
|
|
Loading…
Reference in a new issue