about summary refs log tree commit diff
path: root/day20.bqn
diff options
context:
space:
mode:
Diffstat (limited to 'day20.bqn')
-rw-r--r--day20.bqn5
1 files changed, 5 insertions, 0 deletions
diff --git a/day20.bqn b/day20.bqn
new file mode 100644
index 0000000..a9de76d
--- /dev/null
+++ b/day20.bqn
@@ -0,0 +1,5 @@
+enh‿img ← ('#'⊸=∘⊑ ⋈ >∘('#'⊸= 2⊸↓)) •Flines"day20"
+Step ← { enh ⊏˜ ((2⊸×+⊣)´∘⌽∘⥊)⎉2 3‿3 ↕ (2|𝕨 × ⊑enh) ⍉∘⌽∘(∾˘)⍟8 𝕩 }
+
+•Show +´⥊ img Step´ ⌽↕2
+•Show +´⥊ img Step´ ⌽↕50