:(
This commit is contained in:
parent
82684102b6
commit
1cc8dd94d7
@ -49,6 +49,8 @@ class BfsPathFinder:
|
|||||||
path.append(self.goal.getAction())
|
path.append(self.goal.getAction())
|
||||||
path.append(current.getAction())
|
path.append(current.getAction())
|
||||||
while current.state != startState:
|
while current.state != startState:
|
||||||
|
point = current.state.getPoint()
|
||||||
|
current.action = self.setAction(current, point)
|
||||||
path.append(current.getAction())
|
path.append(current.getAction())
|
||||||
current = cameFrom[current]
|
current = cameFrom[current]
|
||||||
path.reverse()
|
path.reverse()
|
||||||
|
Binary file not shown.
Loading…
Reference in New Issue
Block a user