Updated invalid word lists, touched testing launch configs.

This commit is contained in:
dongar committed 2023-05-03 17:06:54 -05:00
1 parent e4bf8d46f0
commit 9909dd7d60
3 files changed
+8 -53

No files matched your search

+8 -6
View File
@@ -25,11 +25,14 @@ class InvalidWord(Exception):
_wordle_dictionary = set()
_invalid_words = set(['staia', 'erept', 'boily', 'bolty', 'pindy', 'hyrse', 'hirse', 'retan', 'sisel',
_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', 'arara', 'araru', 'araua', 'arawa',
'mitra', 'gotra', 'whaly', 'whalm', 'doray', 'korah', 'caroa', 'carlo', 'carot',
'carum', 'theet', 'tebet', 'ghole', 'odell'])
'carum', 'theet', 'tebet', 'ghole', 'odell', 'sussy', 'bayal', 'balak', 'katat',
'batak', 'bruke', 'uninn', 'undig', 'unkin', 'quito', 'petro', 'amala',
])
def dictionary():
@@ -221,10 +224,9 @@ def filter_dictionary(constraints, wordle_dictionary=dictionary()):
if __name__ == '__main__':
constraints = Constraints()
constraints.update_graded('cares', [LetterResult.INCORRECT, LetterResult.INCORRECT, LetterResult.INCORRECT, LetterResult.INCORRECT, LetterResult.INCORRECT])
constraints.update_graded('monty', [LetterResult.INCORRECT, LetterResult.INCORRECT, LetterResult.INCORRECT, LetterResult.INCORRECT, LetterResult.INCORRECT])
constraints.update_graded('filii', [LetterResult.MOVE, LetterResult.MOVE, LetterResult.INCORRECT, LetterResult.INCORRECT, LetterResult.INCORRECT])
constraints.update_graded('cares', [LetterResult.INCORRECT, LetterResult.INCORRECT,
LetterResult.INCORRECT, LetterResult.INCORRECT, LetterResult.INCORRECT])
valid_words = filter_dictionary(constraints)
print("Top: ", scored_words(valid_words)[:1])
print("Top: ", scored_words(valid_words)[:5])