fixed endgame
This commit is contained in:
+2
-2
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user