diff --git a/2020/11/main.py b/2020/11/main.py index 21d9380..b410cbb 100644 --- a/2020/11/main.py +++ b/2020/11/main.py @@ -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):