From f296015e8cc98ac1068d2256d947a440ac97d4bc Mon Sep 17 00:00:00 2001 From: Ben Harris Date: Tue, 14 May 2024 17:19:58 +0100 Subject: [PATCH] 14b done I dodged the bug by sticking the floor on by simpler means. --- 14/14b.bqn | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/14/14b.bqn b/14/14b.bqn index c2ec017..dba86fa 100644 --- a/14/14b.bqn +++ b/14/14b.bqn @@ -25,10 +25,10 @@ RectIndices←{ Plot←{ # Assume all co-ordinates are positive. - ⟨max_x, max_y⟩ ← (⟨1,3⟩+⌈˝>∾𝕩) - max_x ↩ max_x ⌈ 500+max_y + ⟨max_x, max_y⟩ ← (1+⌈˝>∾𝕩) + max_x ↩ max_x ⌈ 502+max_y map←⟨max_x,max_y⟩⥊0 - map ↩ 1¨⌾(¯1⊸⊏˘) map # Solid floor + map ↩ ∾⟜⟨0,1⟩˘map {𝕊⟨from,to⟩: map ↩ 1¨⌾((from RectIndices to)⊸⊑) map }˘∾2↕¨𝕩 -- 2.30.2