Skip to content

Commit

Permalink
⭐⭐
Browse files Browse the repository at this point in the history
  • Loading branch information
JesperDramsch committed Dec 20, 2020
1 parent 4f1ef80 commit 6faa6e2
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions 2020/day20.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,6 @@ def find_snek(data):
snek = snekies.pop()
snek_y, snek_x = snek.shape
for y, x in np.ndindex(data.shape):
x -= snek_x // 2 - 1
y -= snek_y // 2
sub_arr = data[y : y + snek_y, x : x + snek_x].copy()
if not sub_arr.shape == snek.shape:
continue
Expand Down

0 comments on commit 6faa6e2

Please sign in to comment.