Skip to content

Uses a Trie to generate an answer list for NYT Spelling Bee puzzles. Fun exercise for familiarizing myself with Go.

Notifications You must be signed in to change notification settings

gmelsby/spelling-bee-solver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Spelling Bee Puzzle Solver

Description

CLI tool to generate solutions for a New York Times Spelling Bee-style puzzle.
Prompts user for letters and prints a list of possible puzzle solutions.
Uses words_alpha.txt from dwly's english-words repo as a source of valid words.
This list contains many words that the official NYT Spelling Bee game does not recognize as valid words.
However, other word lists omit certain valid answers, and it is preferable to generate too many words than too few.

How to run

  • Make sure you have Go installed
  • Clone this repo
  • In the project root, run the command go run .
  • Follow the instructions printed to stdout

Enter letters as argument

If you wish to enter your letters as a command line argument (say for redirecting the output to a file) you can run the command
go run . [letters]
with [letters] replaced with a string of the letters in the puzzle with the required letter first.
No instructions or user prompts are printed to stdout if you run the program in this manner. You will receive only a list of answers. Perfect for redirecting output to a file!

About

Uses a Trie to generate an answer list for NYT Spelling Bee puzzles. Fun exercise for familiarizing myself with Go.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages