diff options
author | Leah Neukirchen <leah@vuxu.org> | 2021-12-25 17:52:09 +0100 |
---|---|---|
committer | Leah Neukirchen <leah@vuxu.org> | 2021-12-25 17:52:09 +0100 |
commit | 34dd965131a4e776113f7684a251819239bdf72c (patch) | |
tree | 4b3b730f6234fd205f6b07f4d60e87150684cc37 /day25.bqn | |
parent | ceb09f9791e37f5c7fc422c9f848de09d58a7337 (diff) | |
download | adventofcode2021-master.tar.gz adventofcode2021-master.tar.xz adventofcode2021-master.zip |
Diffstat (limited to 'day25.bqn')
-rw-r--r-- | day25.bqn | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/day25.bqn b/day25.bqn new file mode 100644 index 0000000..2af1c5e --- /dev/null +++ b/day25.bqn @@ -0,0 +1,11 @@ +_fixcnt ← { 𝕩 ≡ 𝔽 𝕩 ? 𝕨 ; (𝕨+1) 𝕊 𝔽 𝕩 } + +d←>•FLines "day25s" + +•Show 1 { 𝕊 ⟨east, south⟩: + east ↩ ((¯1⌽˘east)∧¬south∨east) ∨ 1⌽˘(¯1⌽˘east)∧south∨east + south ↩ ((¯1⌽south)∧¬south∨east) ∨ 1⌽(¯1⌽south)∧south∨east + east‿south +} _fixcnt (=⟜'>' ⋈ =⟜'v') d + +# 601 |