https://github.com/ganesshkumar/wordle-answer
Answer for Wordle
https://github.com/ganesshkumar/wordle-answer
puzzle wordle wordle-tutorial
Last synced: 11 months ago
JSON representation
Answer for Wordle
- Host: GitHub
- URL: https://github.com/ganesshkumar/wordle-answer
- Owner: ganesshkumar
- Created: 2022-01-20T19:49:17.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-02-26T23:32:49.000Z (over 4 years ago)
- Last Synced: 2025-06-26T00:42:29.781Z (11 months ago)
- Topics: puzzle, wordle, wordle-tutorial
- Language: TypeScript
- Homepage: https://wordle-answer.vercel.app
- Size: 47.9 KB
- Stars: 0
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# wordle-answer
https://wordle-answer.vercel.app
## How it works?
- Opening the `main.xxxxxxxx.js` of Wordle page and search for today's answer, quickly points us to an array of words from which Wordle chooses today's word.

- So, we have Wordle's wordlist. Next, we have to find out how Wordle picks up today's word.

- A usage search on the array of words brings us to the above function. We can see that a random word is picked using an index computed by `a=s%La.length`. So, Wordle is picking words in sequence from this array. When it reaches the end, it will starting picking a word from the beginning of the wordlist. Still, we have to figure out the index, *s*, is being calculated.

- *s* is compute from Ga by calling a funcation *Na* with two parameters.
- *Na* just finds the number of days elapsed between the two parameters passed.
- The second parameter is today's date and
- The first parameter is given by *Ha* = Jun 19th 2021.
### How to get today's word?
**All we have to do is find the number of days between today and Jun 19th 2021 and use it as the index for the wordlist found in the js file of Wordle**
Give any random date, we can predict the word for that date. That's what [this webpage](https://wordle-answer.vercel.app) is based on, to find today's and tomorrow's answer.