From 9cd87445f2c5d222852899fbc678c27344307cf6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maximilian=20Ke=C3=9Fler?= Date: Sat, 6 May 2023 12:29:52 +0200 Subject: [PATCH] fix missing self. in hanabi.py --- hanabi.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hanabi.py b/hanabi.py index 09e9c03..971ec68 100644 --- a/hanabi.py +++ b/hanabi.py @@ -187,8 +187,8 @@ class GameState(): self.clues += 1 else: self.strikes += 1 - assert (self.strikes < instance.num_strikes) - self.trash.append(instance.deck[card_idx]) + assert (self.strikes < self.instance.num_strikes) + self.trash.append(self.instance.deck[card_idx]) self.actions.append(Action(ActionType.Play, target=card_idx)) self.__replace(card_idx) self.__make_turn()