improve on game: add todo and provide list of dark suits
This commit is contained in:
parent
f322766dca
commit
98bbe02495
1 changed files with 8 additions and 0 deletions
|
@ -105,6 +105,10 @@ class Action:
|
||||||
|
|
||||||
|
|
||||||
class HanabiInstance:
|
class HanabiInstance:
|
||||||
|
# TODO Max: Deal with the following variants:
|
||||||
|
# - Critical fours (need to calculate dark suits differently)
|
||||||
|
# - Reversed (need to store information somehow and pass this to the hanabi game class)
|
||||||
|
# - Up or Down (in the long run we also want this, but seems a bit tedious, not needed now)
|
||||||
def __init__(
|
def __init__(
|
||||||
self,
|
self,
|
||||||
deck: List[DeckCard],
|
deck: List[DeckCard],
|
||||||
|
@ -170,6 +174,10 @@ class HanabiInstance:
|
||||||
def clue_increment(self):
|
def clue_increment(self):
|
||||||
return 0.5 if self.clue_starved else 1
|
return 0.5 if self.clue_starved else 1
|
||||||
|
|
||||||
|
@property
|
||||||
|
def dark_suits(self):
|
||||||
|
return list(range(self.num_suits - self.num_dark_suits, self.num_suits))
|
||||||
|
|
||||||
|
|
||||||
class GameState:
|
class GameState:
|
||||||
def __init__(self, instance: HanabiInstance):
|
def __init__(self, instance: HanabiInstance):
|
||||||
|
|
Loading…
Reference in a new issue