From ca615c1b23cac96a47c4c4178025cfc71f703b74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Weronika=20Gor=C4=85cy?= Date: Thu, 7 May 2020 20:23:46 +0000 Subject: [PATCH] Zaktualizuj 'program.py' --- program.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/program.py b/program.py index 0c75ff1..0cbf702 100644 --- a/program.py +++ b/program.py @@ -108,7 +108,7 @@ class MainWindow: self.mapForAStar[where[0]][where[1]] = 0 path = star.search([0, 2], where, self.mapForAStar, 1) self.mapForAStar[where[0]][where[1]] = 1 - value = path[0][2] + value = path[cns][cwe] while True: if cns>0 and path[cns-1][cwe]==(value+1): cns=cns-1