We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 454e80b commit 1fa3924Copy full SHA for 1fa3924
2020/20b.py
@@ -217,25 +217,6 @@ def create_raster(tiles, m):
217
return global_picture
218
219
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
239
def search_monster(picture):
240
monster = [
241
" # ",
0 commit comments