Crates.io | wordlers |
lib.rs | wordlers |
version | 0.2.2 |
source | src |
created_at | 2022-01-14 18:00:47.287075 |
updated_at | 2022-03-05 05:59:48.231549 |
description | A program to solve/play word games |
homepage | |
repository | |
max_upload_size | |
id | 513972 |
size | 53,197 |
A wordle solver.
It relies on the word list from stanford graph base. If the file is not found, it is downloaded.
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.
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.
Run it with the argument cb
. You will have upto 20 chances to figure out the right word.
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.
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).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).