Skip to content

leifg/wordle_solver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WordleSolver

This is a naive approach for a generic solver for the popular online game Wordle.

It is still under heavy development.

Usage

Install dependencies via mix deps.get

Configuration

By default the word list used is the Scrabble Dictionary list.

You can use any word list as long as it is delimited by new lines.

Solving

To find out how many attempts it would have taken to solve a word run the solve mix task. Make sure to enter the words in lower case characters.

mix solve [target] [start_word]

Example:

mix solve tiger water
> Solved in 5 attempts

Show Distribution

To analyze the word list and show the distribution of letters and which words are ranked highest for a fixed length, run the show_distribution task.

For 5 letter words use:

mix show_distribution 5

Build Analytics

**WARNING: This tasks take a while to complete

To figure out how many attempts a specific start word yields for every other word run the analyze task.

Example

mix analyze water,tiger,crazy

You can pass in the number of threads you want to use via the --threads flag (Default is 10 or number of words you pass in, whichever is lower).

mix analyze --threads 2 water,tiger,crazy

If you want a random set of words, pass in the argument random, you can optionally specify the word length (defaults to 5).

This will use 100 random words from the word list with a word length of 5

mix analyze --length 5 --words 100 random

If you really want to go over all words, use the argument all:

mix analyze --length 5 all

This will create a tmp/distribution.jsonl file where every line shows the guesses needed for every other word. Additionally it will print out how many words need more than 6 guesses to find.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages