ganesshkumar / wordle-answer

Answer for Wordle

Home Page:https://wordle-answer.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

image

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

image

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

image

  • 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 is based on, to find today's and tomorrow's answer.

About

Answer for Wordle

https://wordle-answer.vercel.app


Languages

Language:TypeScript 97.5%Language:JavaScript 1.5%Language:CSS 1.0%