Hacker News new | ask | show | jobs
by primeradical 1613 days ago
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

2 comments

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

Nice port! However it's not letting me re-use a guessed letter, which makes it way harder to guess the answer