Update tests because Map.neighbourhood became a static method
This commit is contained in:
		@@ -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():
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user