8000 GitHub - Quinny/WordleSolver: http://quinnftw.com/wordle - An automated wordle (www.powerlanguage.co.uk/wordle/) solver
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Quinny/WordleSolver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WordleSolver

A solver for the wordle game. Solves all words in an average 3.8 guesses.

solver

How to use

Web Version

Navigate to http://quinnftw.com/wordle and follow the on screen instructions.

CLI Version

  1. Clone this repo
  2. Run python3 solver.py
  3. Use the suggested guess presented
  4. Provide the resulting tile colors in the verdict prompt, using B for black, Y for yellow, G for green, or bad if the suggested guess was not a valid wordle word
  5. goto 3 until you win

How it works

word_scorer.py

word_scorer.py generates a "score" for each word in five_letter_words.txt that represents the average information gain that word provides as a guess. The information gain is calculated by simulating using the word as a guess for every possible secret word.

solver.py / app.jsx

solver.py/app.jsx uses the information gained from each guess to build a list of constraints that the secret word must conform to, and then selects the highest scoring word which meets those constraints as the suggested guess.

Releases

No releases published

Packages

No packages published
0