fixed endgame

This commit is contained in:
2024-06-11 22:05:06 +02:00
parent 7edfa627d0
commit c50553c94a
+2 -2
View File
@@ -42,7 +42,7 @@ class HumanPlayer(APlayer):
state_next = self.to_state(state.copy(), move) state_next = self.to_state(state.copy(), move)
return state_next, has_moved return state_next, has_moved
def end_game(self, value, state: np.array): def end_game(self, state: np.array, value):
if value > 0: if value > 0:
print(f"{self.name}, Du hast gewonnen, super!") print(f"{self.name}, Du hast gewonnen, super!")
else: else:
@@ -57,4 +57,4 @@ if __name__ == '__main__':
if not has_moved: if not has_moved:
break break
p.end_game(1.0) p.end_game(state, 1.0)