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

View File

@ -23,7 +23,7 @@ class TestRandomWalk(unittest.TestCase):
self.assertTrue(m.tiles[m.start_y][m.start_x].can_walk())
#DFS
queue = m.neighbourhood(m.start_y, m.start_x)
queue = Map.neighbourhood(m.tiles, m.start_y, m.start_x)
while queue != []:
y, x = queue.pop()
if m.tiles[y][x].can_walk():