Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/stelynx/steldrow

Wordle solver implemented in VanillaJS
https://github.com/stelynx/steldrow

wordle wordle-solver

Last synced: 10 days ago
JSON representation

Wordle solver implemented in VanillaJS

Awesome Lists containing this project

README

        

_Steldrow_ is a [Wordle](https://www.powerlanguage.co.uk/wordle/) solver by Stelynx. The name comes from
_Stelynx_ and _wordle_ reversed.

## About Wordle

Wordle is a very popular word-based game. The goal of the game is to guess a word with 5 letters from predefined dictionary in 6 guesses in as little tries as possible.

After each guess, the game shows you for every letter
in your guess, if that character is on the correct position (result is _correct_), is in the word but on another position (result is _present_), or is not in the word at all (result is _absent_).

## Algorithm

Steldrow is a completely deterministic algorithm. It is initialized with two lists of words,
the common and uncommon ones. These word lists are taken from Wordle page source code and are defined in [wordlist.js](src/wordlist.js).

Then, for each round, the following is performed:

1. From the common words, a character frequency is calculated, counting all occurences of the same character inside one word as one occurence (e.g. both "eerie" and "taken" add 1 to frequency of character "e").
2. Words are sorted by their character frequencies. The scoring function takes a set of characters in a word and sums their precalculated frequencies. Words are then sorted from highest to lowest score.
3. The first word is taken from the sorted list and used as a guess.
4. If the word was correct, the algorithm stops.
5. Otherwise, both common and uncommon words are filtered based on the result obtained. Filtering function removes the words that

- do not have _correct_ characters on proper indices,
- have _present_ characters on the same index as the guess word,
- do not contain _present_ characters at all,
- contain the _absent_ characters.

6. If filtered common word list is empty, it is replaces by uncommon word list (that has also been filtered on every step).

## Results

In this section, the results will be posted. The script is being run in Safari 15.0.

**Spoiler Alert** Latest Wordle results are on the top. The table also contains **solutions**.


Wordle #
Date
Score
Image
Guesses


236
02/10/2022
3/6

🟨⬜🟨⬜⬜
⬜⬜🟨🟩🟩
🟩🟩🟩🟩🟩





A
L
E
R
T


C
H
A
S
E


P
A
U
S
E





235
02/09/2022
3/6

⬜⬜⬜🟨⬜
⬜🟩🟨⬜🟨
🟩🟩🟩🟩🟩





A
L
E
R
T


C
U
R
I
O


H
U
M
O
R





234
02/08/2022
4/6

🟨⬜🟨🟨⬜
⬜🟩🟩⬜🟩
⬜🟩🟩⬜🟩
🟩🟩🟩🟩🟩





A
L
E
R
T


G
R
A
C
E


D
R
A
K
E


F
R
A
M
E





233
02/07/2022
4/6

⬜🟩🟨🟨⬜
⬜🟩⬜🟩🟩
⬜🟩🟩🟩🟩
🟩🟩🟩🟩🟩





A
L
E
R
T


F
L
I
E
R


O
L
D
E
R


E
L
D
E
R





232
02/06/2022
5/6

⬜🟨⬜⬜⬜
🟨⬜⬜🟨⬜
🟩⬜🟩🟩🟩
🟩⬜🟩🟩🟩
🟩🟩🟩🟩🟩





A
L
E
R
T


L
O
U
S
Y


S
W
I
L
L


S
P
I
L
L


S
K
I
L
L





231
02/05/2022
2/6

🟩🟩⬜⬜🟩
🟩🟩🟩🟩🟩





A
L
E
R
T


A
L
O
F
T




230
02/04/2022
4/6

🟨🟩🟩⬜🟩
⬜🟩🟩🟩🟩
⬜🟩🟩🟩🟩
🟩🟩🟩🟩🟩





A
L
E
R
T


B
L
E
A
T


C
L
E
A
T


P
L
E
A
T





229
02/03/2022
3/6

🟨⬜⬜🟩⬜
⬜🟩🟩🟩🟩
🟩🟩🟩🟩🟩





A
L
E
R
T


C
H
A
R
D


S
H
A
R
D





228
02/02/2022
5/6

⬜⬜⬜⬜🟨
⬜🟩🟩🟩🟩
⬜🟩🟩🟩🟩
⬜🟩🟩🟩🟩
🟩🟩🟩🟩🟩





A
L
E
R
T


H
O
I
S
T


J
O
I
S
T


F
O
I
S
T


M
O
I
S
T





227
02/01/2022
3/6

⬜⬜🟨⬜🟨
🟨⬜⬜🟨🟩
🟩🟩🟩🟩🟩





A
L
E
R
T


S
U
I
T
E


T
H
O
S
E





226
01/31/2022
3/6

⬜🟨⬜⬜🟩
🟨⬜🟨🟨🟩
🟩🟩🟩🟩🟩





A
L
E
R
T


G
U
I
L
T


L
I
G
H
T





225
01/30/2022
3/6

⬜⬜⬜🟨⬜
⬜🟨🟨⬜⬜
🟩🟩🟩🟩🟩





A
L
E
R
T


C
U
R
I
O


W
R
U
N
G





224
01/29/2022
4/6

⬜🟨⬜⬜⬜
🟨🟩🟩⬜⬜
⬜🟩🟩🟩🟩
🟩🟩🟩🟩🟩




A
L
E
R
T


L
O
U
S
Y


W
O
U
L
D


C
O
U
L
D





223
01/28/2022
4/6

⬜⬜🟨🟨⬜
🟨⬜⬜⬜🟨
⬜🟨⬜🟨⬜
🟩🟩🟩🟩🟩




A
L
E
R
T


R
O
U
S
E


F
R
I
E
D


P
E
R
K
Y





222
01/27/2022
4/6

⬜⬜⬜⬜🟩
⬜🟩⬜⬜🟩
⬜🟩🟨🟨🟩
🟩🟩🟩🟩🟩




A
L
E
R
T


H
O
I
S
T


D
O
N
U
T


M
O
U
N
T





221
01/26/2022
3/6

🟨⬜⬜⬜⬜
⬜🟨⬜⬜⬜
🟩🟩🟩🟩🟩





A
L
E
R
T


M
A
S
O
N


W
H
A
C
K





220
01/25/2022
4/6

🟨⬜⬜🟨⬜
⬜🟨🟨⬜⬜
⬜⬜🟩🟩🟩
🟩🟩🟩🟩🟩





A
L
E
R
T


B
A
R
O
N


C
I
G
A
R


S
U
G
A
R