fix missing self. in hanabi.py

This commit is contained in:
Maximilian Keßler 2023-05-06 12:29:52 +02:00
parent 0e6067ffe3
commit 9cd87445f2
Signed by: max
GPG key ID: BCC5A619923C0BA5

View file

@ -187,8 +187,8 @@ class GameState():
self.clues += 1 self.clues += 1
else: else:
self.strikes += 1 self.strikes += 1
assert (self.strikes < instance.num_strikes) assert (self.strikes < self.instance.num_strikes)
self.trash.append(instance.deck[card_idx]) self.trash.append(self.instance.deck[card_idx])
self.actions.append(Action(ActionType.Play, target=card_idx)) self.actions.append(Action(ActionType.Play, target=card_idx))
self.__replace(card_idx) self.__replace(card_idx)
self.__make_turn() self.__make_turn()