I figured that was possible; from the UX it was pretty clear it’s all client side. What I would find cool is derivation of the best strategy at any time. Just like blackjack, there should be a “best” move at all times , and it would be cool to measure yourself against that
I made one, not the optimal strategy though, I simply minimized the expected number of possible solutions for the next step. I repurposed my Mastermind solver since it's basically the same game. Just like Mastermind, minimax is probably better than what I did, but it does solve every Wordle in at most 5 guesses, on average 3.4 guesses. https://github.com/jbchouinard/untitled-word-game https://en.wikipedia.org/wiki/Ma…
Reverse engineering Wordle
31–40 of 67 posts
Re: Reverse engineering Wordle
#32They had all the answers stored in the source code. I wrote up a quick perl script to play the game and unfortunately left it running overnight, and in the morning there were complaints from other players asking how I'd reached the top rank so quickly.
Re: Reverse engineering Wordle
#33> It seems like many of the variables are given names that are not descriptive at all to make it a bit more difficult to read. The code is just minimized for prod.. The article as written makes it sound like the developer(s) intentionally wrote their code cryptically, whereas minimization for deployment is fairly standard practice
How common is it to have your minifier change symbol/variable names to short ones?
Re: Reverse engineering Wordle
#34> var Ha = new Date(2021,5,19,0,0,0,0); > My assumption is that this is the launch date for Wordle But not 19th of May 2021, but 20th of June 2021 Every time I look as JavaScript, I find a new reason to hate it.
Only 50%; the month is zero-indexed, but the day isn't.
Re: Reverse engineering Wordle
#35Re: Reverse engineering Wordle
#36This website is crashing Chrome on my Xiaomi :/
Re: Reverse engineering Wordle
#37Earlier quoted context omitted.
How common is it to have your minifier change symbol/variable names to short ones?
That's literally what they are for.
Re: Reverse engineering Wordle
#38This is an unusual thing to find myself typing in a HN thread, but this could use a spoiler tag, as I did not expect to have tomorrow’s challenge ruined for me by a technical blog post.
Re: Reverse engineering Wordle
#39Re: Reverse engineering Wordle
#40This was good while my wife and I were in the same time zone: we compared guesses and how we got there. Now that she's a day ahead, we can't do that right now (we found this out when she accidentally did a spoiler).