Wordle

A Python-based solver and CLI player

This was created using Python 3.9.7.

SPOILER ALERT: the data directory contains spoilers for upcoming Wordle games. View at your own risk ? .

The only requirement, I think is for the rich libary, and that’s just for the CLI.

To play a game:

python cli -h
usage: cli.py [-h] [-n NUMBER]

optional arguments:
  -h, --help            show this help message and exit
  -n NUMBER, --number NUMBER
                        Archived Wordle game

You can play against archived games, or choose a random word by not specifying -n at all.

To use the solver:

echo 'badly' | python solver.py

See python solver.py -h for more.

etc.

You can write your own Solver by subclassing Solver. The only required method is guess. I’m sure you’ll write a better solver than I did. But I’m spent enough time on this already. ??

GitHub

View Github