I know there are tone of wordle solver. And I know why, because it is cool to code yours.
So here is mine.
- as requirement you need nodejs (min 13.7) and npm(min 6.14) installed
- clone this repo
- npm install
graph TD;
A["dictionary extraction"]-->B
B["find the word that have the most letter in common with the others"]-->C;
C[word try in wordle]-->D;
D[remove all word that not respect the result from wordle]-->B;
In terminal run npm run main
or node index
You have to follow the questions
When the algo ask for the result from wordle here is the syntax * * * * *
where * can be :
- 0 letter is not present
- 1 letter is present but not at the right place
- 2 the letter is present and at the right place
basically this algo find the word in three tries
two languages supported :
- english (tested)
- french (tested)
- italian (not validated by italian people)
- dutch (not validated by dutch people)
- portugues (not validated by portugues people)
- spanish (not validated by spanish people)
If someone (let me hope) wants a new language please share me a representative dictionary.
- format the dictionnary one word per line with carrier return :
\n
- save it in resources/rawlist.csv
- run
npm run new_language --first={language}
(note it may take multiple hours )
A basic statistic file is created on your computer to save the algo performance. Here is the structure :
{
"{langague}" :
"{length}":[{all count tries}]
}
this file is totaly useless except if you love stat
I am not responsible if this code ruins your game's experience