Wordla is a Python Wordle solver with both a terminal interface and a local website. It can solve a word you provide, help with feedback from a live game, or benchmark the solver across the full word list.
- Solve a target word from the terminal
- Step through feedback from a live game
- Run a full benchmark over
words.txt - Open a local website for the same workflows
- Keep the project lightweight with plain Python, HTML, CSS, and JavaScript
- Python 3.8+
tqdmfor benchmark progress output
git clone https://github.com/rexmhall09/Wordla.git
cd Wordla
pip install tqdmpython main.py-
Solve a word you enter
- Enter a five-letter word
- Enter
rfor a random word - If the word is not in
words.txt, Wordla falls back to a random one
-
Enter feedback for a live game
- Wordla suggests a guess
- Enter feedback with
G,Y, andN - Enter any other five letters to skip a guess that the game rejects
-
Benchmark the solver
- Runs the solver across the full word list
- Prints the average number of guesses
-
Open the website
- Starts a local server on
127.0.0.1 - Opens the browser UI for solver, helper, and benchmark modes
- Stop the server with
Ctrl+C
- Starts a local server on
The website is served locally from website.py and static files under web/.
There is no separate web build step.
main.py— terminal menusolver_core.py— shared solver logicknownword.py— terminal mode for solving a known target wordhelper.py— terminal mode for entering feedback from a live gametestaverage.py— terminal benchmark modewebsite.py— local HTTP server and APIweb/— website assetstests/— regression testswords.txt— word list
Run the test suite with:
python -m unittest discover -s tests -p 'test*.py'This project is licensed under the MIT License. See LICENSE.