programgames/shut-the-box/shut-the-box.xtl
ᵘg̲ame : Int -> Int
A whole game by the high-tiles player: each turn shuts the move with the highest tiles. Each line is the box before the roll.
ᵘg̲ame ← { s → said ← p̲rint! ᵇv̲iew s r ← '+ r̲/ ᵇr̲oll s 0 = t̲ally s ᵇm̲oves r ? ᵇs̲core s t ← s ᵇs̲hut s ᵇh̲igh r 0 = ᵇs̲core t ? 0 ᵘg̲ame t }
Used in: ᵘg̲ame, games/shut-the-box/shut-the-box.xtl:35