diff --git a/phase_six.py b/phase_six.py index e46e1b5..de292d7 100644 --- a/phase_six.py +++ b/phase_six.py @@ -73,13 +73,6 @@ class Map: result.append([x,y]) return result - def complete(self, grid): - for y in range(1, self.height, 2): - for x in range(1, self.width, 2): - if(grid[y][x] != SPACE): - return False - return True - def hunt_and_kill(self, grid): on_x = 1 on_y = 1 @@ -105,7 +98,6 @@ class Map: grid[row][col] = SPACE on_x, on_y = nb_x, nb_y - assert self.complete(grid), "Maze is not complete." return dead_ends