Remove obsolete function
This commit is contained in:
parent
806f6dab61
commit
e348f7077f
1 changed files with 0 additions and 5 deletions
|
@ -12,11 +12,6 @@ class PuzzleSolver:
|
|||
self.width = len(self.data[0])
|
||||
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):
|
||||
n = 0
|
||||
for j in range(y-1, y+2):
|
||||
|
|
Loading…
Reference in a new issue