Solve the daily Letterboxed word puzzle from the New York Times.
Project description
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. On Linux they are usually available under /usr/share/dict
.
$ letterboxed -h
usage: letterboxed [-h] -d <file> top left right bottom
NYT Letterboxed Two-Solver
positional arguments:
top Comma-separated letters from top side.
left Comma-separated letters from left side.
right Comma-separated letters from right side.
bottom Comma-separated letters from bottom side.
options:
-h, --help show this help message and exit
-d <file> Dictionary File
# Puzzle for December 7, 2023
$ letterboxed -d /usr/share/dict/american-english a,e,g p,o,t h,i,l c,m,v
glove -> empathetic
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)
print(" -> ".join(lbox.solve()))
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
letterboxed-0.0.1.tar.gz
(3.3 kB
view hashes)
Built Distribution
Close
Hashes for letterboxed-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ec16fb0d7745154743d990e95f1f46ee9c6743ae0c139555f8d71bbd4bfdeab8 |
|
MD5 | 5405d86a891ba0351547e8bcfd5722cc |
|
BLAKE2b-256 | ea1eb8e73b6dd6a6e6f0a1187efd6a7924a5e7debe46a30a803ec1c065b966cc |