Remove obsolete function

This commit is contained in:
Søren Rasmussen 2020-12-11 08:24:44 +01:00
parent 806f6dab61
commit e348f7077f

View file

@ -12,11 +12,6 @@ class PuzzleSolver:
self.width = len(self.data[0]) self.width = len(self.data[0])
self.height = len(self.data) self.height = len(self.data)
def is_adjacent(self, x1, y1, x2, y2):
dy = abs(y2 - y1)
dx = abs(x2 - x1)
return dy <= 1 and dx <= 1
def occupied_adjacent(self, x, y): def occupied_adjacent(self, x, y):
n = 0 n = 0
for j in range(y-1, y+2): for j in range(y-1, y+2):