pip install --pre toga or python3 -m pip install --pre toga
python3 gui.py
Just input your word and the corresponding colors and the program will solve it for you.
Watch this video for a demonstration:
2022-01-23.11-55-02.mp4
Updated demonstration with a particularly difficult case (and me trying to explain what the program actually does):
2022-02-03.10-32-48.mp4
A suckless, fast, and ultra-optimized C implementation with a Text User Interface (TUI).
- GCC or compatible C compiler
- ncurses library
- make
On Debian/Ubuntu:
sudo apt-get install build-essential libncurses-devOn macOS:
brew install ncursesmakeEdit config.h to customize solver parameters:
BBQ: M-estimate smoothing parameter (default: 1.5)KETCHUP: Position probability weight (default: 1.56)MAYONNAISE: Letter frequency weight (default: 0.84)
These parameters are tuned for optimal word guessing performance.
./wordle_solver- Use arrow keys to navigate between letter positions
- Type letters directly to fill in your guess
- Press Space to cycle through colors (Grey -> Yellow -> Green)
- Press Enter to submit the current row and get a new suggestion
- Press Q to quit
The program will suggest the most probable word based on your input and display the number of remaining possible words.
The C version is highly optimized with:
- O3 compiler optimizations
- Native CPU architecture optimizations
- Efficient probability calculations
- Fast word filtering algorithms
- Minimal memory footprint (~500KB binary)
This implementation follows suckless principles:
- Single source file implementation
- Configuration through header file (config.h)
- No external dependencies except ncurses and standard library
- Simple, readable code
- Fast and efficient