[2024][uiua][4.x] refactoring

main
Alpha Chen 1 week ago
parent ca3a78eafe
commit 44edcbac1a
Signed by: alpha
SSH Key Fingerprint: SHA256:3fOT8fiYQG/aK9ntivV3Bqtg8AYQ7q4nV6ZgihOA20g

@ -13,12 +13,12 @@ $ MXMXAXMASX
⊜∘≠@\n.
Input ←
Search ← /+♭≡(◇⌕) ⊙¤
Search ← /+♭≡(◇⌕) ♭≡[⍥₃⊸(⍉⇌)] ⊙¤
Diagonal ← ≡⊏×⟜⊞=.+₁⇡⟜↯4 "\WXMAS"
Part₁ ← Search {∩⍥₃⊸(⍉⇌) Diagonal ¤"XMAS"}
Part₁ ← Search {Diagonal ¤"XMAS"}
Part₂ ← Search [⍥₃⊸(⍉⇌)]↯3_3"M\WM\WA\WS\WS"
Part₂ ← Search {↯3_3"M\WM\WA\WS\WS"}
$Part₁ Part₁ Input
$Part₂ Part₂ Input

Loading…
Cancel
Save