Live web app: https://dylanpyle.github.io/beeline
CLI: npx beeline-solver
A tool to find solutions to the New York Times' Spelling Bee puzzles. The concept is pretty simple; given 6 optional letters and 1 required one, create as many words using only these letters as you can.
I got pretty into these puzzles during COVID-19 quarantine. After "finishing" one, I was always curious how many solutions I had missed — turns out, usually way more than I expected. I assumed there would be a trivial way to solve them automatically & efficiently, but the more I thought about it the more I realized there probably wasn't. I haven't checked out any other solutions/solvers if they exist, this is just my attempt to learn through building.
There are three entry points to the codebase:
bin/build-lookup-table.ts- Ingests
data/wordsand compiles a data structure to make word lookups more efficient; writes this tostatic/words.lookup.json.
- Ingests
bin/find-words.ts <optional letters> <required letter>- A CLI interface for finding words; e.g.
bin/find-words.ts abcdef g
- A CLI interface for finding words; e.g.
src/web.ts- A web frontend for finding words.
bin/dev- start local dev server, watching for changesbin/test [filename]- run one or alltapetest suitesbin/build- compile TS and static assets todocs/bin/publish- release new changes to Github Pages
I don't use the same word list as the NYT, because I don't have theirs! A closer-match wordlist would be a very appreciated contribution.