This commit is contained in:
barmal4 2021-04-26 23:32:41 +02:00
parent 82684102b6
commit 1cc8dd94d7
2 changed files with 2 additions and 0 deletions

View File

@ -49,6 +49,8 @@ class BfsPathFinder:
path.append(self.goal.getAction())
path.append(current.getAction())
while current.state != startState:
point = current.state.getPoint()
current.action = self.setAction(current, point)
path.append(current.getAction())
current = cameFrom[current]
path.reverse()