Skip to content

A simple Haskell wordle player that given restraints will output the list of possible words and a guess suggestion.

License

Notifications You must be signed in to change notification settings

crypt0s1s/wordleHelper

Repository files navigation

Wordle

Dependencies:

stack

split

  • stack install split

multiset

  • stack install multiset

Usage:

Currently the program has 2 components. A playable version of wordle and a word suggester. To swap between these programs comment / uncomment the relavent lines in app/Main.hs.

Word Suggester:

The program takes up to 4 arguments detailing the following

  1. letters that are in the word (e.g. abz)
  2. letters that aren't in the word (e.g. ceh)
  3. letters that are in the word at a specific location seperated by commas (e.g. r,e,t,r,y - can only return the word retry)
  4. letters that aren't in the word at a specific location seperated by commas (e.g. v,a,ca,n,t)

All arguments can be ommited. If there are no known letters in the word a '.' can be used as a replacement.

Full examples:

stack run . adieu (no known letters and the letters 'a','d','i','e','u' are not in the word)

stack run zer wqjb z,,,, ,,,,er (z is in the first position in the word. 'e' and 'r' are not in the last position in the word)

About

A simple Haskell wordle player that given restraints will output the list of possible words and a guess suggestion.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published