Skip to content

A simple Wordle helper. Product of a random 30-minute coding challenge I decided to do.

Notifications You must be signed in to change notification settings

daughter-shark/WordleBreaker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

WordleBreaker

A simple Wordle helper.
Product of a random 30-minute coding challenge I decided to do.

It uses regex to handle pretty much everything. Requires english-words library.

Usage

WordleBreaker().add_guess(word, result) is basically it. Adding a guess takes a word to guess, and the result it came up with.
The result string is composed with 3 letters:

  1. x - does not exist
  2. e - exists, but not in the correct position
  3. c - correct

For example, if you had guessed P O I S E and image is the result, you would input xcxxe.

Example main:

if __name__ == '__main__':
    breaker = WordleBreaker()
    while True:
        w = input("Try a word: ")
        r = input("What was the result? example if 'champ' and c was correct, h exists, a m p are wrong cexxx: ")
        potential = breaker.add_guess(w, r)
        print(potential)
        if len(potential) == 1:
            break

About

A simple Wordle helper. Product of a random 30-minute coding challenge I decided to do.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages