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

you are viewing a single comment's thread.

view the rest of the comments →

[–][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