Building a New York Times Connections Solver with Python
dev.to·5h·
Discuss: DEV
Flag this post

If you’re a fan of word games, you’ve probably come across the puzzle from The New York Times called Connections. In this game you’re shown 16 words and you must split them into 4 groups of 4, each group sharing a hidden common theme.

Recently I built a Solver for this puzzle (or at least a helper tool) and in this post I’ll walk through how I approached it, the code that underlies it, and the challenges & trade-offs you’ll face when building something like this. If you’ve got your own favorite puzzle solver tools, I hope this inspires you to build one too.

What is NYT Connections & why build a solver?

The puzzle

Here’s a quick summary of the NYT Connections mechanics:

  • You have 16 words, in a 4x4 grid.
  • You must guess 4 sets of 4 wo…

Similar Posts

Loading similar posts...