Skip to content

Commit 1fa3924

Browse files
committed
remove unused function
1 parent 454e80b commit 1fa3924

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

2020/20b.py

-19
Original file line numberDiff line numberDiff line change
@@ -217,25 +217,6 @@ def create_raster(tiles, m):
217217
return global_picture
218218

219219

220-
def compute_roughness(row, col, picture):
221-
monster = [
222-
" # ",
223-
"# ## ## ###",
224-
" # # # # # # ",
225-
]
226-
width = len(monster[0])
227-
height = len(monster)
228-
roughness = -sum(1 for c in monster for d in c if d == "#")
229-
try:
230-
for row_index, r in enumerate(picture[row : row + width]):
231-
for col_index, c in enumerate(r[col : col + height]):
232-
if c == "#":
233-
roughness += 1
234-
except TypeError:
235-
breakpoint()
236-
return roughness
237-
238-
239220
def search_monster(picture):
240221
monster = [
241222
" # ",

0 commit comments

Comments
 (0)