diff --git a/wordle.py b/wordle.py index 790966c..ab32e8e 100644 --- a/wordle.py +++ b/wordle.py @@ -25,8 +25,9 @@ class InvalidWord(Exception): _wordle_dictionary = set() -_invalid_words = set(['staia', 'erept', 'boily', 'bolty', 'pindy', 'hyrse', 'hirse', 'retan', 'sisel', 'skeel', 'telae', 'genae', 'beata', 'beala', 'macco', 'beele', 'divet', 'vedet', 'stail', 'roter']) - +_invalid_words = set(['staia', 'erept', 'boily', 'bolty', 'pindy', 'hyrse', 'hirse', 'retan', 'sisel', + 'skeel', 'telae', 'genae', 'beata', 'beala', 'macco', 'beele', 'divet', 'vedet', + 'stail', 'roter', 'fikie', 'muang', 'nurry']) def dictionary(): if not _wordle_dictionary: @@ -214,9 +215,7 @@ def filter_dictionary(constraints, wordle_dictionary=dictionary()): if __name__ == '__main__': constraints = Constraints() - constraints.update_graded('cares', [LetterResult.INCORRECT, LetterResult.INCORRECT, LetterResult.MOVE, LetterResult.CORRECT, LetterResult.INCORRECT]) - constraints.update_graded('rover', [LetterResult.INCORRECT, LetterResult.CORRECT, LetterResult.MOVE, LetterResult.CORRECT, LetterResult.CORRECT]) - constraints.update_graded('vomer', [LetterResult.CORRECT, LetterResult.CORRECT, LetterResult.INCORRECT, LetterResult.CORRECT, LetterResult.CORRECT]) + constraints.update_graded('cares', [LetterResult.INCORRECT, LetterResult.INCORRECT, LetterResult.INCORRECT, LetterResult.INCORRECT, LetterResult.INCORRECT]) valid_words = filter_dictionary(constraints)