#word #word-list #wordle #solver #game #file #found

app wordlers

A program to solve/play word games

4 releases

0.2.2 Mar 5, 2022
0.2.1 Mar 5, 2022
0.1.1 Jan 15, 2022
0.1.0 Jan 14, 2022

#329 in Games

Custom license

27KB
656 lines

A wordle solver.

It relies on the word list from stanford graph base. If the file is not found, it is downloaded.

To solve wordle

Just run the executable without any command line arguments.

For instance, cargo run. The program responds with a word. Enter the wordle reponse in the form of five letter string comprising of Y,N or G -- Y for Yellow, G for Green and N for nothing.

To play wordle

Dont. Play at wordle. However, if you want to practice, run it with argument wordle. The program responds with a five letter string consisting of Y,N or G.

  • Y at position i => the letter at ith position in your guess is yellow.
  • G at position i => the letter at ith position in your guess is green.
  • N at position i => the letter at ith position in your guess is not present in the word.

To play cows and bulls

Run it with the argument cb. You will have upto 20 chances to figure out the right word.

Other Command Line arguments

  • soft. By passing soft as argument, it will solve wordle in non-hard mode. It uses upto four words to figure out as many letters as possible and use the remaining chances to build up on it. This is akin to Norvig's solution although, the choice of words is different.

  • shapes target-word response* By giving a target word and a bunch of options, it will try and provide a sequence of words (without repition) that will satisfy the pattern.

    • For example, running with shapes brine YNNNY YNNNY NYYYN YNNNY YNNNY would give five distinct words which result in a H shape (when the result is known to be BRINE).

    image

    • running with shapes brine YNNNY NYNYN NNYNN NYNYN YNNNY would result in five distinct words that would result in an X shape (when the result is known to be BRINE).

    image

Dependencies

~4–17MB
~246K SLoC