alex1770 / wordle

Finding optimal play in the game of wordle
MIT License
54 stars 16 forks source link

wordlist_hidden is out-of-date #7

Open zacknewman opened 1 year ago

zacknewman commented 1 year ago

Today's answer word is "balsa" which is not in wordlist_hidden.

zacknewman commented 1 year ago

This can probably be closed. I looked at the JavaScript file, and it only contained the array of 14,855 guess words. This leads me to believe that the list of answer words is not accessible anymore.

alex1770 commented 1 year ago

Thanks. Unfortunately I think they moved to a server-side word choice a little while ago. There was another word that was not on the hidden list a few months ago. Like you I went looking for an updated hidden-word list in the JavaScript, but couldn't find anything. Of course this means we can't analyse the puzzle in the same way any more.

zacknewman commented 1 year ago

Fortunately the list of guess words is still accessible. Plus your code is so versatile it does not really matter. Great work. You are clearly quite brilliant. Math FTW yet again.

alex1770 commented 1 year ago

Thanks, that very kind. It's possible to get hold of a larger hidden wordlist they are using (3158 entries, as used by WordleBot). I've put the list here and made it the default wordlist_hidden. I also wrote some notes here on evaluating every possible starting word assuming the hidden word is randomly chosen from this updated hidden list.

zacknewman commented 1 year ago

Interesting that before the hidden list was expanded, "salet" was the best first word to use on hard mode; but now not only is it not the best, it has an infinite score (i.e., there are some answer words for which the use of "salet" will prevent you from guessing the word assuming one plays "perfectly" each turn).

alex1770 commented 1 year ago

It's probably because they've added a lot of past tenses - ending in "ed" - which were previously forbidden. Not sure the point of this change - maybe they will never be chosen as words. So if SALET gets greens for A and E and a yellow for T, then you're faced with ?ATED which could start with any of B, D, F, G, H, M, R or S and quite a few TA?ED which are hard to tease them apart in 5 guesses if you are restricted in hard mode.

(You can make the program tell you what the sticking point is, BGBGY, if you do: wordle -H -w salet -z0 which puts it in hard mode with the first choice as SALET, and -z0 sets diagnostic output at level 0.)

zacknewman commented 1 year ago

This program is so damn cool. I am glad I found it. I was about to attempt a Wordle solver of my own, but then I found yours which is infinitely better than what mine would have ever been. I have a background in pure math, but not nearly to the extent of someone like you. Seeing how you solved the Eternity puzzle (with a modicum of luck), I'm sure this was like elementary arithmetic to you.

alex1770 commented 1 year ago

Haha, you remember Eternity. That was a while ago now!

zacknewman commented 1 year ago

Lol, not quite. When I found this and read your blog posts about it, I was interested to learn more about you because it was quite clear you were someone that was very intelligent. I then stumbled on an article about that puzzle and saw your name. I clearly didn't read it very well because I thought that happened around 2015 and not 2000.