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.
Metadata
Release files for fwordlesolver 0.4.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| fwordlesolver-0.4.7.tar.gz | 698.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| fwordlesolver-0.4.7-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 1.4 MB
Release files / fwordlesolver-0.4.7.tar.gz
| Download URL | fwordlesolver-0.4.7.tar.gz |
|---|---|
| Size | 698.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fef8e99c35dabf11557a06249dd3c080b3a3c40694d57934f442be550a965211
|
|
BLAKE2b-256 checksum How to use checksums |
e3cfa3993e3523e80d4dec3a7067ec9ee3572b7163bae7b31aac5ad1f8343872
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.0.1 CPython/3.9.21 Linux/6.8.0-1020-azure
|
Release files / fwordlesolver-0.4.7-py3-none-any.whl
| Download URL | fwordlesolver-0.4.7-py3-none-any.whl |
|---|---|
| Size | 698.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5ae3851a99d594e70bd8cd1012edfdb1f583c29ee8e50c1b7939c4f6ec2b6974
|
|
BLAKE2b-256 checksum How to use checksums |
862181795b02da5f15af67a3df477ba4752554b82e4c8892fbf04a59203a4d2a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.0.1 CPython/3.9.21 Linux/6.8.0-1020-azure
|