/ Uiua / 2023 / 04.ua
04.ua
 1  &fras ⊣ &args
 2  
 3  ParseCard ← ∩°□°⊟ ⊜(□⊜⋕≠@ .)≠@|. ↘+2⊗@:.
 4  Matches   ← ⧻▽∊⊙.
 5  Points    ← ⌊ⁿ⊙2-1
 6  WinMatrix ← ⬚0≡(⊂1⊂∩↯⊙(0⊙1)) ⇡⧻.⊂0
 7  A         ← /+≡Points
 8  B         ← ⊢◌ ⍥⟜(/+×)⧻. ⟜(¬⊢) WinMatrix
 9  
10  ⊃B A ⊜(Matches ParseCard)≠@\n.