From f6185a655f102ad1cec103e78a94a8a28dee7b77 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kinga=20Jagodzi=C5=84ska?= Date: Mon, 18 May 2020 19:15:03 +0000 Subject: [PATCH] Zaktualizuj 'Traktorek/Tractor.py' --- Traktorek/Tractor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Traktorek/Tractor.py b/Traktorek/Tractor.py index 962a667..07b5c87 100644 --- a/Traktorek/Tractor.py +++ b/Traktorek/Tractor.py @@ -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):