Add /addword command to add missing Wordle answers

Some real Wordle answers aren't in the bundled answers.txt list. This
adds a REPL command to append a word to answers.txt and remove it from
guesses.txt if present there, since the two lists are meant to be
disjoint.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
2026-07-25 05:06:51 -04:00
parent 70ead4b520
commit e5017efde8
5 changed files with 169 additions and 5 deletions
+1
View File
@@ -77,6 +77,7 @@ The solver prints how many candidates remain, lists them when 20 or fewer are le
| `/round` | Start a new wager round: clears solver state and the round total, exits practice mode |
| `/price` | Reset per-letter wager prices to the defaults ($1 correct / $2 present / $3 absent) |
| `/price <g> <y> <b>` | Set custom per-letter prices, e.g. `/price 2 3 5` |
| `/addword <word>` | Add a missing word to the answers list, removing it from the guesses-only list if it was there |
## Wager tracking