diff --git a/human_player.py b/human_player.py index b6800be..5199d6a 100644 --- a/human_player.py +++ b/human_player.py @@ -42,7 +42,7 @@ class HumanPlayer(APlayer): state_next = self.to_state(state.copy(), move) return state_next, has_moved - def end_game(self, value, state: np.array): + def end_game(self, state: np.array, value): if value > 0: print(f"{self.name}, Du hast gewonnen, super!") else: @@ -57,4 +57,4 @@ if __name__ == '__main__': if not has_moved: break - p.end_game(1.0) + p.end_game(state, 1.0)