Why not simply choose a guess which narrows the set of possible solutions the most? This could be improved by looking one step further, but this would probably require some kind of optimization / heuristic / approximation to make it computationally feasible.
Solving Wordle in 3.64 guesses on average, 99.4% of the time
11–20 of 181 posts
Re: Solving Wordle in 3.64 guesses on average, 99.4% of the time
#12Re: Solving Wordle in 3.64 guesses on average, 99.4% of the time
#13Re: Solving Wordle in 3.64 guesses on average, 99.4% of the time
#14Why not simply choose a guess which narrows the set of possible solutions the most? This could be improved by looking one step further, but this would probably require some kind of optimization / heuristic / approximation to make it computationally feasible.
Re: Solving Wordle in 3.64 guesses on average, 99.4% of the time
#15Why optimize for greens? Better to rule out more first no matter the position. I think it narrows the search space better. If you want to go fancy somehow calculate with bigramms. If you guess c you don't have to guess k blindly too, etc.
If you want to get really fancy, a full minimax solution is probably feasible without massive resources. Pretend it’s a two player game with one player guessing and the other player thinking of a potentially different word for each guess subject to the constraint of being consistent with all previous answers.
Re: Solving Wordle in 3.64 guesses on average, 99.4% of the time
#16If you're interested, you can play with it here: http://www.npinsker.me/puzzles/wordle/ and the source (written in neophyte's Rust) is here: https://gist.github.com/npinsker/a495784b9c6eacfe481d8e38963...
(edit: It's posted elsewhere in the thread, but this is actually not optimal and someone else achieved better results! http://sonorouschocolate.com/notes/index.php?title=The_best_...)
Re: Solving Wordle in 3.64 guesses on average, 99.4% of the time
#17As it stands, it seems like your algo will always use the same first guess, have you thought about making that configurable and seeing what happens with e.g. the number of words where it gets stuck and runs out of time?
Re: Solving Wordle in 3.64 guesses on average, 99.4% of the time
#18Going for greens is a good heuristic, but the general solution is to seek guesses that shrink the size of the set of compatible words the most. https://langproc.substack.com/p/information-theoretic-analys...
Re: Solving Wordle in 3.64 guesses on average, 99.4% of the time
#19Why optimize for greens? Better to rule out more first no matter the position. I think it narrows the search space better. If you want to go fancy somehow calculate with bigramms. If you guess c you don't have to guess k blindly too, etc.
Re: Solving Wordle in 3.64 guesses on average, 99.4% of the time
#20https://twitter.com/jaffathecake/status/1483057877875101697?...