Word puzzle solver library and CLI
Project description
Wordle Solver
This project provides a Wordle solver that can be used as a command-line interface (CLI) tool or imported as a module in your Python code. SOWPODS is used as lexicon.
Suggests new words that are most likely to reduce the total results. Can filter current list of words with
Installation
PyPI
pip install fwordlesolver
Manually
Clone the repository and navigate to the project directory:
git clone https://github.com/fmakdemir/fwordlesolver.git
cd fwordlesolver
Install Poetry if you haven't already. You can find the installation guide here.
Install the required dependencies using Poetry:
poetry install
Usage
Running as CLI
You can run the Wordle solver from the command line. Use the following command:
poetry run f-wordle-solver --word-size 6
You can select the size of the word with
Importing and Using the Solver
You can also import the solver into your Python code:
from fwordlesolver.solver import WordleSolver
solver = WordleSolver(6)
print(solver.get_suggestions())
solver.filter_word('blinks', '.x..x.')
print(solver.get_suggestions())
Running Tests
This package uses pytest for running tests.
To run the tests, use the following command:
pytest
This will execute all the test cases in the tests directory.
License
This project is licensed under the MIT License. See the LICENSE file for details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file fwordlesolver-0.2.1.tar.gz.
File metadata
- Download URL: fwordlesolver-0.2.1.tar.gz
- Upload date:
- Size: 698.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.0.1 CPython/3.9.21 Linux/6.8.0-1020-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a1fd673e73e71f4db60a3d9fa25f36df377dca3fcf91ea20cb6993db0718a7cc
|
|
| MD5 |
3eae8f9080989df1bd49a79215bd5fa4
|
|
| BLAKE2b-256 |
8d68ff7d116a32f24b0390792cfc0418a695f6b27cb7048421a2c3b6db246de2
|
File details
Details for the file fwordlesolver-0.2.1-py3-none-any.whl.
File metadata
- Download URL: fwordlesolver-0.2.1-py3-none-any.whl
- Upload date:
- Size: 697.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.0.1 CPython/3.9.21 Linux/6.8.0-1020-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
019f1818887dd24f5f817b3f93c506938eb9a689e5ad0b063651d592b57d682d
|
|
| MD5 |
f8690b750139a41adc2d06c4cbb6c515
|
|
| BLAKE2b-256 |
69964a547b3612912738819ddcd2ebfe8ee8cdd39f0930ffc2079ffe7b8097dc
|