programgames/tic-tac-toe/play.xtl
ᵘa̲sk : Num a => a -> Int
Your move: the number of an empty square, or it asks again.
ᵘa̲sk ← { b → k ← "YOUR MOVE (1-9) ?" ᵖl̲etter "123456789" (k ≤ 9) ∧ 0 = k s̲elect b c̲at 1 ? k◆ ᵘa̲sk b }
ᵘv̲erdict : Num a => a -> Char
ᵘv̲erdict ← { b → d̲isclose (ᵗs̲tatus b) s̲elect "YOU WIN!" "I WIN." "A DRAW." }
Used in: ᵘy̲ou