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.
Installation
PyPI
pip install
Manually
Clone the repository and navigate to the project directory:
git clone https://github.com/fmakdemir/wordle-solver.git
cd wordle-solver
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 wordlesolver --count 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 wordlesolver import WordleSolver
solver = WordleSolver()
solution = solver.solve('your_word')
print(solution)
Running Tests
To run the tests, use the following command:
pytest tests/
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.1.0.tar.gz.
File metadata
- Download URL: fwordlesolver-0.1.0.tar.gz
- Upload date:
- Size: 697.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.0.1 CPython/3.12.3 Linux/6.8.0-51-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5c1be9ffa70e8ccb36ee318c9df0a63982172745e868ded056764ff63eb1ffe6
|
|
| MD5 |
16ed2ab97f1e5397055fe72ffebdc3ff
|
|
| BLAKE2b-256 |
45c6422ecb6d464d7b34548e990ed55b30cb67c7122df4b787158cc03d4c634a
|
File details
Details for the file fwordlesolver-0.1.0-py3-none-any.whl.
File metadata
- Download URL: fwordlesolver-0.1.0-py3-none-any.whl
- Upload date:
- Size: 697.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.0.1 CPython/3.12.3 Linux/6.8.0-51-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
93b1f3cb42bbc1a7812f4545576f2f1ebbf6941eb97aa6635e626f6a17bdc22c
|
|
| MD5 |
3305410121a98a05af9d2f18c04c1b4f
|
|
| BLAKE2b-256 |
4e0a99b060139d2251f7cc7e48f49f9dd8b1e2c65a2739b32ee0142142beb3ee
|