wordlers

Crates.iowordlers
lib.rswordlers
version0.2.2
sourcesrc
created_at2022-01-14 18:00:47.287075
updated_at2022-03-05 05:59:48.231549
descriptionA program to solve/play word games
homepage
repository
max_upload_size
id513972
size53,197
Hemanth Kapila (kapilash)

documentation

README

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

Commit count: 0

cargo fmt