News for hackers. Stuff that matters.
Re:Reverse engineering Wordle by primeradical on Wednesday January 12, 2022 @11:50AM (#29909260)
I rebuilt Wordle from scratch using the same word list. There are actually two word lists, one from which they select the answer, and another from which they validate real words. They are just arrays of strings hardcoded in the JS bundle.

When you submit a guess, it checks to see if your guess is in either array (or at least that's how I implemented it). And just does some relatively simple string comparison.

Your progress is just stored in local storage. You can blow your data away by deleting it via dev tools.

My version just lets you try again by refreshing, I'm not storing any data.

The viral factor of the original Wordle, IMO, is the share function and the little emoji grid it generates.

https://alexmj212.dev/word-guess/

Source: https://github.com/alexmj212/word-guess

Re:Reverse engineering Wordle by tradertef on Wednesday January 12, 2022 @01:22PM (#29910814)
>> The viral factor of the original Wordle, IMO, is the share function and the little emoji grid it generates.

Yes, that is really genius. That's what made me to wonder what this game was about.

Re:Reverse engineering Wordle by travisporter on Wednesday January 12, 2022 @12:51PM (#29910333)
Nice port! However it's not letting me re-use a guessed letter, which makes it way harder to guess the answer