Update tests because Map.neighbourhood became a static method
This commit is contained in:
parent
8475e5228e
commit
c959a9d865
|
@ -23,7 +23,7 @@ class TestRandomWalk(unittest.TestCase):
|
||||||
self.assertTrue(m.tiles[m.start_y][m.start_x].can_walk())
|
self.assertTrue(m.tiles[m.start_y][m.start_x].can_walk())
|
||||||
|
|
||||||
#DFS
|
#DFS
|
||||||
queue = m.neighbourhood(m.start_y, m.start_x)
|
queue = Map.neighbourhood(m.tiles, m.start_y, m.start_x)
|
||||||
while queue != []:
|
while queue != []:
|
||||||
y, x = queue.pop()
|
y, x = queue.pop()
|
||||||
if m.tiles[y][x].can_walk():
|
if m.tiles[y][x].can_walk():
|
||||||
|
|
Loading…
Reference in New Issue