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 details)
Built Distribution
File details
Details for the file letterboxed-0.0.2.tar.gz
.
File metadata
- Download URL: letterboxed-0.0.2.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 66819f2eb94fc1a92421ecf22e2202d6c1b382c348f2f590444e6bc9a96d9ed7 |
|
MD5 | 58e6eced9dd374d4ee774fe07f91485f |
|
BLAKE2b-256 | 2aab6534b40493c6bfda6f40199b3a6f881dbc226a8169b0a67f5462e3dd8b96 |
File details
Details for the file letterboxed-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: letterboxed-0.0.2-py3-none-any.whl
- Upload date:
- Size: 3.9 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 | 6198cc29ffaa3625940c04943cef27f05d186f1bbf59dfb6b829161fbd28f153 |
|
MD5 | fbc08edd9d4fb9d29f2e288343d43be5 |
|
BLAKE2b-256 | 754c577a8394909cbe0f5ee157e4d46219342cd0e1d1b934344d2bc580466b8e |