Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fwordlesolver-0.1.0.tar.gz (697.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fwordlesolver-0.1.0-py3-none-any.whl (697.6 kB view details)

Uploaded Python 3

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

Hashes for fwordlesolver-0.1.0.tar.gz
Algorithm Hash digest
SHA256 5c1be9ffa70e8ccb36ee318c9df0a63982172745e868ded056764ff63eb1ffe6
MD5 16ed2ab97f1e5397055fe72ffebdc3ff
BLAKE2b-256 45c6422ecb6d464d7b34548e990ed55b30cb67c7122df4b787158cc03d4c634a

See more details on using hashes here.

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

Hashes for fwordlesolver-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 93b1f3cb42bbc1a7812f4545576f2f1ebbf6941eb97aa6635e626f6a17bdc22c
MD5 3305410121a98a05af9d2f18c04c1b4f
BLAKE2b-256 4e0a99b060139d2251f7cc7e48f49f9dd8b1e2c65a2739b32ee0142142beb3ee

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page