This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from itertools import zip_longest | |
from collections import Counter | |
with open("z-wordle-answers-alphabetical.txt") as f: | |
ANSWER_WORDS = [word.strip() for word in f.read().split(",")] | |
with open("z-wordle-allowed-guesses.txt") as f: | |
GUESS_WORDS = [word.strip() for word in f.read().split(",")] + ANSWER_WORDS | |
MISS = 0 | |
CLOSE = 1 |