3 ms·
I thought about using lists like that, but it felt a little too much like cheating. My attempt at something like this is, if the word is one of your first two g
by mattlock 5y ago
I thought about using lists like that, but it felt a little too much like cheating. My attempt at something like this is, if the word is one of your first two guesses, I reward it for having more common letters. And actually penalize common letter "misses" in later lines. I'm sure it's not 100% optimal, but I saw some improvement on my admittedly very limited set of test data. Here's the relevant code - https://github.com/mattruzicka/wordle_decoder/blob/0bfd7eaacd14aab0c8a0971fe1bbb43a76ad5ff8/lib/wordle_decoder/word.rb#L32 https://github.com/mattruzicka/wordle_decoder/blob/0bfd7eaac...
- ghaff 5y agoOf course, doing what I wrote also makes the assumption that the person playing is using one of the top 10 (or whatever) starting words which may or may not be correct. That aside, I started playing a 6 letter variant and, while I haven't done any sort of analysis with access to the word list, I did do a quick Word Hippo analysis of words with common letters, especially vowels, and while I'm sure my results aren't optimal they're probably pretty good. ADDED: Which I think is probably not all that different from what your code is doing. I fed Word Hippo 4 or 5 letters and told it to come up with some common words. But that still requires an assumption that a player has given some thought to good starting guesses.