spellingbee

command module
v0.0.0-...-b2434d0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 8, 2021 License: GPL-3.0 Imports: 7 Imported by: 0

README

spellingbee

Solver for the NYTimes Spelling Bee (I'm ashamed of myself for writing this)

Micah Sherr is responsible for this horrible thing.

Compilation

To build, do:

go get -d .

and then

go build .

Note that you should have some dictionary installed. By default, we look for a word-list (i.e., a file with words in it, delimited by newline characters) at /usr/share/dict/words, although this can be overridden using the -d or --dict option.

This file seems to exist on Macs (at least on my Mac). On Ubuntu, you can install a suitable word-list via sudo apt install wamerican-small.

Usage

usage: spellingbee [-h|--help] [-d|--dict "<value>"] -p|--puzzle "<value>"
                   [-q|--quiet]

                   solves NYTimes spelling bees

Arguments:

  -h  --help    Print help information
  -d  --dict    path to dictionary file. Default: /usr/share/dict/words
  -p  --puzzle  puzzle letters (put center letter first)
  -q  --quiet   quiet mode; only output words

Example: ./spellingbee -p shueamfl

Note that you should put the center letter first.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL