diff --git a/src/classes/Engines.py b/src/classes/Engines.py index d09f9f3..50dfde3 100644 --- a/src/classes/Engines.py +++ b/src/classes/Engines.py @@ -330,6 +330,7 @@ class MinmaxDeepeningPlayerEngine(MinmaxPlayerEngine): # return the current move onli if heuristic is better than previous # iteration if current_heuristic > heuristic: + heuristic = current_heuristic move = current_move depth = depth + 1 @@ -375,6 +376,7 @@ class AlphaBetaDeepeningPlayerEngine(AlphabetaPlayerEngine): # return the current move only if heuristic is better than previous # iteration can be possible id iteration is stopped by timer if current_heuristic > heuristic: + heuristic = current_heuristic move = current_move depth = depth + 1