Live data from Hacker News

Reverse engineering Wordle

reichel.dev

61–67 of 67 posts

Re: Reverse engineering Wordle

#61
I actually did the same thing a week or so ago, but in a more readable format: https://gist.github.com/lc-nyovchev/c42f09a48364665da2634259...

And https://ath3nd.wordpress.com/2022/01/11/about-wordle/

The idea with the game is to have fun, not to make it impenetrable for techies (in which case a backend would have been nice)

Re: Reverse engineering Wordle

#62
post #18
post #7

> 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?

I've seen some minifiers that can restructure your code... replace if{} with a ternary ?: operator or use boolean shortcutting to replace the whole conditional with a ||, and so on. It's supposed to never do anything that actually affects the logic, but that sort of stuff scares me.

Re: Reverse engineering Wordle

#63
post #7

> 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

If they really wanted to hide it, there are some nasty obfuscators for JavaScript: https://obfuscator.io/

Re: Reverse engineering Wordle

#64
post #63
post #7

> 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

If they really wanted to hide it, there are some nasty obfuscators for JavaScript: https://obfuscator.io/

https://jsfuck.com is another good one

Re: Reverse engineering Wordle

#66
post #30
post #29

> 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.

That's horrifying.

Re: Reverse engineering Wordle

#67
post #41
post #9

I just hope the wordle developers manage to cash in on their going-viral jackpot without losing it to copycats or spoiling the experience for players.

I believe the developer was interviewed and said he/she has no plans to change the game to make money. If you go to just https://www.powerlanguage.co.uk/ (maker of the game) you can see he made other games on Reddit (The Button and Place) and is listed as an artist, product manager, and engineer. I suspect the attention the game has received has resulted in many head hunters reaching out. Think of Wordle as a loss le…

Wow, they made The Button as well? That's amazing. They have considerable talent for going viral, it seems.
Post reply on HN