Mathematics of the NYT daily word game Waffle
S. P. Glasby
TL;DR
This work maps the NYT Waffle puzzle to a permutation problem on $21$ colored squares, showing that a perfect unscrambling corresponds to a $g\in S_{21}$ with $s(g)=10$ and $c(g)=11$, making direct solutions rare due to the typical low cycle count of random permutations (about $3.65$ cycles). By invoking Cayley’s lemma and the Cayley graph distance, the paper connects puzzle solvability to cycle structure and fixed points, and develops practical algorithms that use color constraints and dictionary information to identify valid unscramblings. It also analyzes the factors governing puzzle difficulty, highlighting how the numbers of green and yellow squares, $N_g$ and $N_y$, influence search complexity, with extreme hard cases arising when $N_g=1$ and $N_y=0$, where the residual $g'$ decomposes into ten disjoint $2$-cycles and the search space is enormous. The findings inform both puzzle design (e.g., choosing $N_g$ to balance difficulty) and algorithmic solving strategies, including parity-based coloring, non-uniqueness considerations, and frequency-informed pruning. Overall, the paper provides a rigorous combinatorial framework for understanding Waffle hardness and practical methods for solving or designing perfect-scoring games.
Abstract
We investigate the combinatorics of permutations underlying the the daily word game Waffle, and learn why some games are easy to solve while extreme games are very hard. A perfect unscrambling must have precisely 11 orbits, with at least one of length 1, on the 21 squares. We also describe practical algorithms for studying Waffle.
