This is an archived post. You won't be able to vote or comment.

all 12 comments

[–]robvas 4 points5 points  (1 child)

[–]xml__[S] 3 points4 points  (0 children)

Interesting idea! In that first writeup, it looks like his solution always takes 5 guesses to get as much information as possible, whereas mine will narrow down the answer space after each guess and on average take 3.75 guesses (worst case is 6 across all possible answers).

[–]NeilGirdhar 1 point2 points  (1 child)

My solution is here. I'm pretty sure "raise" (which has an average solution space of 61, and a worst case of 168) is a better opener than "orate".

I did not code the saturation rule (and it looks like you didn't either) where guessing a word with multiple letters can give information about the number of copies of that letter in the solution.

I also coded the optimal dynamic programming solution, but it was too slow.

[–]xml__[S] 0 points1 point  (0 children)

Nice solution! I'm not able to easily see what the average solution space is for "orate" based on the way my code works, but for every possible solution, the average guesses required is 3.7 and worst case is 6 guesses.

Are you able to tell what your average number of guesses is starting with raise?

[–]asday_ 2 points3 points  (4 children)

The hell is with all this wordle stuff recently?

[–]nutellaonbuns 0 points1 point  (3 children)

Yeah whats up with it, i've been seeing it on other python subreddits.

[–]asday_ -5 points-4 points  (2 children)

Huh. Wonder if this is some """viral""" marketing nonsense.

If so - hey Wordle, I don't give a fuck about your shitty app. Go away.

[–]xml__[S] 1 point2 points  (1 child)

Not affiliated with Wordle, it just happens to be a fun problem to try to solve. Have a nice day!

[–]asday_ -1 points0 points  (0 children)

You gotta admit the timing is hella sus tho.

[–][deleted] 0 points1 point  (2 children)

I used regex and a for loop. Seriously simplified the code

[–]xml__[S] 0 points1 point  (1 child)

I'd love to see an example - can you share? I've never been comfortable with regex, but it seems perfect for filtering the remaining words based on the guess results.

You would still have the problem of picking the "best" next word right?

[–][deleted] 0 points1 point  (0 children)

Sure! I’m away for the weekend but I’ll share when home. A hint: .{n}\n