From 2ca79dfc6c768a82b0f52bc21562571c046c8128 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maximilian=20Ke=C3=9Fler?= Date: Sat, 24 Jun 2023 17:23:29 +0200 Subject: [PATCH] hanabi instances: support differnt starting players --- hanab_live.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hanab_live.py b/hanab_live.py index 3bd0cab..0b4821b 100644 --- a/hanab_live.py +++ b/hanab_live.py @@ -41,8 +41,8 @@ class HanabLiveInstance(hanabi.HanabiInstance): class HanabLiveGameState(hanabi.GameState): - def __init__(self, instance: HanabLiveInstance): - super().__init__(instance) + def __init__(self, instance: HanabLiveInstance, starting_player: int = 0): + super().__init__(instance, starting_player) self.instance: HanabLiveInstance = instance def make_action(self, action):