Zaktualizuj 'Traktorek/Tractor.py'

This commit is contained in:
Kinga Jagodzińska 2020-05-18 19:15:03 +00:00
parent 8e31384da8
commit f6185a655f

View File

@ -116,7 +116,7 @@ class Tractor(object):
if tentative_is_better == True:
self.came_from[y] = x
self.g_score[y] = tentative_g_score
self.f_score[y] = self.g_score[y] + self._score(y, koniec)
self.f_score[y] = self.g_score[y] + self.h_score(y, koniec)
print("failure")
def reconstruct_path(self, came_from, current):