From c50553c94a9b28edf55f5332d0cfe213f41f8f6c Mon Sep 17 00:00:00 2001 From: Jens Ahrensfeld Date: Tue, 11 Jun 2024 22:05:06 +0200 Subject: [PATCH] fixed endgame --- human_player.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)