improve on game: add todo and provide list of dark suits

This commit is contained in:
Maximilian Keßler 2023-07-08 09:47:10 +02:00
parent f322766dca
commit 98bbe02495
Signed by: max
GPG Key ID: BCC5A619923C0BA5

View File

@ -105,6 +105,10 @@ class Action:
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__(
self,
deck: List[DeckCard],
@ -170,6 +174,10 @@ class HanabiInstance:
def clue_increment(self):
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:
def __init__(self, instance: HanabiInstance):