Surdle: Satisfiability Modulo Wordle
gist.github.com
Surdle: Satisfiability Modulo Wordle
1–10 of 11 posts
Re: Surdle: Satisfiability Modulo Wordle
#2This should almost always get you the answer in 3 guesses. [Edit: Realized after writing that 3 is too optimistic given you might not have enough constraints after the 2nd guess, and agree with dzdt's comment. 4 might be where we end up at.]
I would be curious to see the distribution of #guesses needed across the 158k words.
Re: Surdle: Satisfiability Modulo Wordle
#3Re: Surdle: Satisfiability Modulo Wordle
#4Does anybody know good resources for learning z3. I find the docs hard and material is pretty scarce on the topic.
Re: Surdle: Satisfiability Modulo Wordle
#5For this problem, an enumerative solver may be more optimal (and faster); where optimality is finding the word with the least number of guesses: There are ~158k 5-letter words. Start with a word containing letters with the highest frequency of occurrence amongst 5 letter words (this prob distr is likely to be close to the distr in the english language). Make that guess. Eliminate any words containing black letters, o…
Re: Surdle: Satisfiability Modulo Wordle
#6For this problem, an enumerative solver may be more optimal (and faster); where optimality is finding the word with the least number of guesses: There are ~158k 5-letter words. Start with a word containing letters with the highest frequency of occurrence amongst 5 letter words (this prob distr is likely to be close to the distr in the english language). Make that guess. Eliminate any words containing black letters, o…
I don't know which dictionary Wordle uses, but for scrabble competition (SOWPODS) there are 12478 valid 5 letter words. [1] By my experience the Wordle dictionary is similarly complete.
But while you overestimate the dictionary size you underestimate the number of moves required. I don't play optimally but have done 150+ rounds keeping all constraints satisfied with each play. The modal number of moves to win is 4 (about 50% of games); I get about 20% in 3 moves, 20% in 5 moves.
Over 75% of the time I find 4 or more constraint satisfying moves, even trying to favor eliminating common letters. It is implausible that an optimal strategy would decrease this to 3 moves.
Also to keep in mind: Wordle's dictionary of possible solutions is much smaller than the dictionary of allowable guesses. I have never seen an unfamiliar word as a solution, though I am far from knowing all 5 letter dictionary words.
[1] http://scrabbleguru-sowpods.blogspot.com/2013/01/words-by-le...
Re: Surdle: Satisfiability Modulo Wordle
#7For this problem, an enumerative solver may be more optimal (and faster); where optimality is finding the word with the least number of guesses: There are ~158k 5-letter words. Start with a word containing letters with the highest frequency of occurrence amongst 5 letter words (this prob distr is likely to be close to the distr in the english language). Make that guess. Eliminate any words containing black letters, o…
Your numbers are not right. I don't know which dictionary Wordle uses, but for scrabble competition (SOWPODS) there are 12478 valid 5 letter words. [1] By my experience the Wordle dictionary is similarly complete. But while you overestimate the dictionary size you underestimate the number of moves required. I don't play optimally but have done 150+ rounds keeping all constraints satisfied with each play. The modal nu…
Re: Surdle: Satisfiability Modulo Wordle
#8Does anybody know good resources for learning z3. I find the docs hard and material is pretty scarce on the topic.
Re: Surdle: Satisfiability Modulo Wordle
#9Earlier quoted context omitted.
Your numbers are not right. I don't know which dictionary Wordle uses, but for scrabble competition (SOWPODS) there are 12478 valid 5 letter words. [1] By my experience the Wordle dictionary is similarly complete. But while you overestimate the dictionary size you underestimate the number of moves required. I don't play optimally but have done 150+ rounds keeping all constraints satisfied with each play. The modal nu…
If I've understood the minified source correctly, Wordle has 2,315 words it can pick for the word of the day and 10,657 additional words that it'll let you enter.