Medium Complexity / TS 5.0+

candy_crush.ts

Greedy left-to-right candy crushing on a 1D board. Sequences of 3+ like items collapse via recursive conditional inference, with every reduction step traced.

Edit the source on the left. As you type, the type checker re-evaluates and prints the fully-resolved value of each concrete type alias on the right.

candy_crush.ts
TS 5.9
Compiler Output View
Booting TypeScript…