A command-line tool to help you solve Wordle puzzles efficiently by suggesting optimal guesses and narrowing down possible answers based on your feedback.
- Recommends the best starting guesses for Wordle.
- After each guess and feedback, shows:
- Top guesses (for information and solution)
- Top possible answers (most likely solutions)
- Remaining possible answers (if 20 or fewer)
- Interactive prompt for entering guesses and feedback.
- Node.js (v16 or higher recommended)
- npm (Node package manager)
- Clone or download this repository.
- Ensure you have a
wordle.csvfile in the project directory. This file should contain columnsvalidWordleGuessandvalidWordleAnswer. - Install dependencies:
npm install chalk csv-parser
- Open a terminal in the project directory.
- Run the script:
node analyze.js
- Follow the prompts:
- Enter your guess (5-letter word).
- Enter the result using
g(green),y(yellow), andb(black/gray) for each letter. For example,gybgb. - Type
exitat any prompt to quit.
Recommended first guesses:
1. slate: 123.4
2. crate: 120.1
...
Enter your guess (or type "exit" to quit): crate
Enter result (g/y/b for green/yellow/black): byybb
Top guesses:
1. ...
Top possible answers:
1. ...
Possible answers remaining: 8
Possible words: ...
- The tool recalculates the best guesses and possible answers after each round of feedback.
- If no possible answers remain, you can continue playing and try different guesses. The tool will not stop the game.
- The feedback logic now matches Wordle's handling of repeated letters and yellow/green feedback, so results are more accurate for tricky cases (e.g., repeated letters in guess or answer).
- Note: Occasionally, the official Wordle may use a word as the answer that is only in the guess list (not the answer list). In these rare cases, this tool may not suggest or recognize the correct answer.
MIT