diff --git a/2025/day04.ua b/2025/day04.ua index 59e0aef..8a188c1 100644 --- a/2025/day04.ua +++ b/2025/day04.ua @@ -3,10 +3,31 @@ Input ← Lines &fras "input/day04.txt" Wall ← ≡◇=@@ Input -/⊂ -₁⇡[3 3] -▽¬⍜⍉(⊡1)⊸⦷0_0 +# Removed ? Wall +Step ← |1 ( + /⊂ -₁⇡[3 3] + ▽¬⍜⍉(⊡1)⊸⦷0_0 -/+ ⬚0˜↻ Wall -<4 -×Wall -/+♭ + /+ ⊸⬚0↻ + <4 + × +) + +# Removed Wall' ? Wall +Run ← |1.2 ( + ⍢( + | ⊙( + ⊸Step + ⟜- + /+♭ + ) + ⤙+ + ≠₀ + ) 0 +) + +Part₁ ← /+♭ Step +Part₂ ← ⊙◌ Run + +Part₁ Wall +Part₂ Wall