Skip to content
This repository has been archived by the owner on Jun 6, 2022. It is now read-only.
/ wordle_solver Public archive

A Python script to solve Wordle puzzles

License

Notifications You must be signed in to change notification settings

Nadock/wordle_solver

Repository files navigation

Wordle Solver

An interactive solver tool for Wordle.

PR Checks Python version psf/black version Textualize/rich version

Install

Currently wordle_solver is not published to PyPi or similar so you will need to clone the repo and install the required dependencies with pipenv.

git clone [email protected]:Nadock/wordle_solver.git
cd wordle_solver
pipenv install

Usage

The default interactive mode can be run via:

pipenv run python -m wordle_solver

In-Progress Games

wordle_solver can assist with an in-progress Wordle game with the --guess/-g and --answer/-a flags. There must be a --answer option for each --guess option. Each guess and answer will be paired up in the order they are supplied on the command line.

Non-Interactive Options

wordle_solver can generate a suggestion without interaction with the --suggest/-s flag. Alternatively, wordle_solver can output all the possible words remaining for the current game with the --remain/-r flag.

Input Mapping

The valid inputs and mapping from Wordle outputs to wordle_solver inputs is displayed on startup in interactive mode.

Wordle wordle_solver Description
🟩 Y Green letter in Wordle
🟨 M Yellow letter in Wordle
⬜ or ⬛ N Grey letter in Wordle
S Generate a suggested guess
R List remaining possible words
G Add a guess of your own
Q Quit wordle_solver

Example Game

This example is based on Wordle 219 (2022-01-24):

Wordle 219 Example

About

A Python script to solve Wordle puzzles

Topics

Resources

License

Stars

Watchers

Forks

Languages