programgames/2048/2048.xtl
ᵘp̲ick : (Num a, Truthy a, Num b) => a -> b
A whole game by a simple corner player: left, then down, then right, then up, the first of them that moves anything.
ᵘp̲ick ← { s → ok ← '{ n̲ot (s ᵗm̲ove ⍵) m̲atch s } e̲ach 1 4 2 3 f̲irst (ok r̲eplicate 1 4 2 3) c̲at 1 }
Used in: ᵘg̲ame