From 3d9b199687e68c2f8d7e1eafdc2eb27e77cf8f13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Weronika=20Gor=C4=85cy?= Date: Thu, 7 May 2020 20:22:48 +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 0cbf702..0c75ff1 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[cns][cwe] + value = path[0][2] while True: if cns>0 and path[cns-1][cwe]==(value+1): cns=cns-1