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)
for pair in lbox.solve():
print(" -> ".join(pair))
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.2.tar.gz
(3.3 kB
view hashes)
Built Distribution
Close
Hashes for letterboxed-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6198cc29ffaa3625940c04943cef27f05d186f1bbf59dfb6b829161fbd28f153 |
|
MD5 | fbc08edd9d4fb9d29f2e288343d43be5 |
|
BLAKE2b-256 | 754c577a8394909cbe0f5ee157e4d46219342cd0e1d1b934344d2bc580466b8e |