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.3.tar.gz
(3.4 kB
view details)
Built Distribution
File details
Details for the file letterboxed-0.0.3.tar.gz
.
File metadata
- Download URL: letterboxed-0.0.3.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2d0e5eb422e1dcfa1d1f638d183503faaac6949365cf71336bfdb6c1cdd94c30 |
|
MD5 | 9fa675c60d747d9ad04da64270a3286c |
|
BLAKE2b-256 | a89660423901e86f6c89f2bc60506140e5dd4eaab8d37da37d44c150ea8894ff |
File details
Details for the file letterboxed-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: letterboxed-0.0.3-py3-none-any.whl
- Upload date:
- Size: 4.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b21a709538715057a34eae5e44b8b529a88deeeac57cc755c3c2438a8e680129 |
|
MD5 | 6788d4133190f404b43400bf26d2da76 |
|
BLAKE2b-256 | 0d3a88ae9b1f1676e4b0244e5a778147f52fb521103aac3aad86d7c7aafb525f |