Update tests because Map.neighbourhood became a static method

This commit is contained in:
Charles Peyrat 2021-01-08 05:42:12 +01:00
parent 8475e5228e
commit c959a9d865
1 changed files with 1 additions and 1 deletions

View File

@ -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():