Implement mark_adjacent function

This commit is contained in:
Garmelon 2016-02-12 21:36:08 +01:00
parent f407a8e2a8
commit c996b4a9c3

View file

@ -81,7 +81,10 @@ class Maze:
Marks all cells adjacent to x, y as "?" and add them to the queue. Marks all cells adjacent to x, y as "?" and add them to the queue.
""" """
pass for xn, yn in self.get_neighbours(x, y):
if self.get_cell(xn, yn) == " ":
self.set_cell(xn, yn, "?")
self.queue.append((xn, yn))
def replace(self, val1, val2): def replace(self, val1, val2):
""" """