Skip to content

Commit 47c4034

Browse files
committed
fix: function name typo
Signed-off-by: guoguangwu <[email protected]>
1 parent c6ca194 commit 47c4034

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

machine_learning/astar.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def __init__(self, world_size=(5, 5)):
5757
def show(self):
5858
print(self.w)
5959

60-
def get_neigbours(self, cell):
60+
def get_neighbours(self, cell):
6161
"""
6262
Return the neighbours of cell
6363
"""
@@ -110,7 +110,7 @@ def astar(world, start, goal):
110110
_closed.append(_open.pop(min_f))
111111
if current == goal:
112112
break
113-
for n in world.get_neigbours(current):
113+
for n in world.get_neighbours(current):
114114
for c in _closed:
115115
if c == n:
116116
continue

0 commit comments

Comments
 (0)