Letterboxed Solver
Python module to solve the daily word puzzle from the New York Times.
Installation
python -mpip install letterboxed
Usage
You will need a local dictionary file in order to use this module if you want to specify custom puzzles with the -l argument.
$ letterboxed -h
usage: letterboxed [-h] (-n | -l top-rgt-lft-btm | -r) [-d <file>] [-g word1,word2]
NYT Letterboxed Solver
options:
-h, --help show this help message and exit
-n Pull today's puzzle from the NYTimes website.
-l top-rgt-lft-btm Specify the letters you want on the box.
-r Generate a random letterbox puzzle.
-d <file> Dictionary File
-g word1,word2 Make a guess on the supplied letterbox.
# Puzzle for December 8, 2023
$ letterboxed -d /usr/share/dict/american-english -l CTO-UFM-QZB-INA -d /usr/share/dict/american-english-huge
quiz -> zombification
$ letterboxed -n
Today's puzzle is CTO-UFM-QZB-INA
quiz -> zombification
quoz -> zombification
$ letterboxed -l CTO-UFM-QZB-INA -g quiz,zombification -d /usr/share/dict/american-english-huge
You got it!
$ letterboxed -r -d /usr/share/dict/american-english
Your letterbox puzzle is
vdi-tsn-aeo-mrl
Run `letterboxed -l vdi-tsn-aeo-mrl -g your,guess` to make a guess.
Example python module usage:
from letterboxed import Letterbox
with open("/usr/share/dict/american-english-small", "r") as fp:
dict = fp.read().split("\n")
lbox = Letterbox((('a', 'e', 'g'), ('h','i','l'), ('c', 'm', 'v'), ('p', 'o', 't')), dict)
for pair in lbox.solve():
print(" -> ".join(pair))
Metadata
Release files for letterboxed 0.0.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| letterboxed-0.0.6.tar.gz | 6.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| letterboxed-0.0.6-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 14.1 kB
Release files / letterboxed-0.0.6.tar.gz
| Download URL | letterboxed-0.0.6.tar.gz |
|---|---|
| Size | 6.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a650d4910f7143df85c7dcbeb3df3e696c4c706a2094467751960face876fdf7
|
|
BLAKE2b-256 checksum How to use checksums |
32f2171406eaba1538408bc0f8a0086475cc6cb5bae9334791251b74e31707ec
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.2
|
Release files / letterboxed-0.0.6-py3-none-any.whl
| Download URL | letterboxed-0.0.6-py3-none-any.whl |
|---|---|
| Size | 7.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8aa93275eee07b2be5fc0894aa2da183849dcaec21ec98318bd8dc38a4f5ed05
|
|
BLAKE2b-256 checksum How to use checksums |
5e59f82e16ee17fab1297fda12ee21f292ba7522c251364dc07816f0efa4fdfd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.2
|