Unscrambles words from mywordle.strivemath.com
strivemath uses quite a clever approach to hiding their word. They combine multiple words!
Now what does that mean? Well, strivemath has associated each letter with a combination of letters.
For exampe, if you create a wordle "AAAAAA", you'll see that the url contains ?word=worlde, this is because the letter "A" has been assigned the letters W,O,R,D,L,E
Each letter has a combination of letters like this. Now the question is, "how does the word length match?"
They use indices!
here's a diagram on how it works:
A really simple code implementation would look like this:
guess = ""
current_solving = 0
while True:
if encode(guess + random_letter)[current_solving] == secret[current_solving]:
guess += random_letter
current_solving++
if len(guess) == len(secret): break
print(guess)
if you want to see the full example, here's the source code for this page