diff --git a/.vscode/launch.json b/.vscode/launch.json deleted file mode 100644 index 25fc024..0000000 --- a/.vscode/launch.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - // Use IntelliSense to learn about possible attributes. - // Hover to view descriptions of existing attributes. - // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 - "version": "0.2.0", - "configurations": [ - { - "name": "Python: Flask", - "type": "python", - "request": "launch", - "module": "flask", - "env": { - "FLASK_APP": "app.py", - "FLASK_DEBUG": "1" - }, - "args": [ - "run", - "--no-debugger", - "--no-reload" - ], - "jinja": true, - "justMyCode": true - }, - { - "name": "Python: Debug Tests", - "type": "python", - "request": "launch", - "program": "${file}", - "purpose": [ - "debug-test" - ], - "console": "integratedTerminal", - "justMyCode": false - } - ] -} \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json deleted file mode 100644 index e065b89..0000000 --- a/.vscode/settings.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "python.testing.unittestArgs": [ - "-v", - "-s", - ".", - "-p", - "test*.py" - ], - "python.testing.pytestEnabled": false, - "python.testing.unittestEnabled": true -} \ No newline at end of file diff --git a/wordle.py b/wordle.py index 6cf316d..dca2c1b 100644 --- a/wordle.py +++ b/wordle.py @@ -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])