A package containing a solver for the NYT Letter Boxed Game
Project description
Introduction
This is a simple script to solve the NYT Letter Boxed game. The user supplies a words file and a Letter Boxed gamehe words file is used to generate winning combinations for Letter Boxed.
Good recommendations for words files include:
Installation
- Clone the repo
- Create a virtual environment
- Open a terminal and cd into the cloned directory
- Type: 'python -m pip install -e .' to create an editable install
Usage
Using an example on a Python REPL in Linux
from lbsolver import Gameboard, LBSolver
board = Gameboard("t n m h r v i k e a u b".split())
FILE = '/usr/share/dict/words'
with open(FILE,'r') as my_file:
dictionary = my_file.readlines()
solver = LBSolver(board, dictionary)
answers = solver.solve(max_num_words=3, minimum_answers=10)
print(answers)
Command line
Type the following at the command prompt to see command line usage:
lbsolver -h
The API
Our License
- Our License
- test_dictionary license
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
lbsolver-1.0.0.tar.gz
(7.0 kB
view hashes)