From e348f7077fb918fffcde699771d8c642de360b6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B8ren=20Rasmussen?= Date: Fri, 11 Dec 2020 08:24:44 +0100 Subject: [PATCH] Remove obsolete function --- 2020/11/main.py | 5 ----- 1 file changed, 5 deletions(-) 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):