hanabi instances: support differnt starting players

This commit is contained in:
Maximilian Keßler 2023-06-24 17:23:29 +02:00
parent 9f952c231f
commit 2ca79dfc6c
Signed by: max
GPG key ID: BCC5A619923C0BA5

View file

@ -41,8 +41,8 @@ class HanabLiveInstance(hanabi.HanabiInstance):
class HanabLiveGameState(hanabi.GameState): class HanabLiveGameState(hanabi.GameState):
def __init__(self, instance: HanabLiveInstance): def __init__(self, instance: HanabLiveInstance, starting_player: int = 0):
super().__init__(instance) super().__init__(instance, starting_player)
self.instance: HanabLiveInstance = instance self.instance: HanabLiveInstance = instance
def make_action(self, action): def make_action(self, action):