forked from s444399/AI
Zaktualizuj 'program.py'
This commit is contained in:
parent
3d9b199687
commit
ca615c1b23
@ -108,7 +108,7 @@ class MainWindow:
|
|||||||
self.mapForAStar[where[0]][where[1]] = 0
|
self.mapForAStar[where[0]][where[1]] = 0
|
||||||
path = star.search([0, 2], where, self.mapForAStar, 1)
|
path = star.search([0, 2], where, self.mapForAStar, 1)
|
||||||
self.mapForAStar[where[0]][where[1]] = 1
|
self.mapForAStar[where[0]][where[1]] = 1
|
||||||
value = path[0][2]
|
value = path[cns][cwe]
|
||||||
while True:
|
while True:
|
||||||
if cns>0 and path[cns-1][cwe]==(value+1):
|
if cns>0 and path[cns-1][cwe]==(value+1):
|
||||||
cns=cns-1
|
cns=cns-1
|
||||||
|
Loading…
Reference in New Issue
Block a user