Updated invalid word lists, touched testing launch configs.
This commit is contained in:
1 parent
e4bf8d46f0
commit
9909dd7d60
3 files changed
+8
-53
No files matched your search
Vendored
-36
@@ -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
|
||||
}
|
||||
]
|
||||
}
|
||||
Vendored
-11
@@ -1,11 +0,0 @@
|
||||
{
|
||||
"python.testing.unittestArgs": [
|
||||
"-v",
|
||||
"-s",
|
||||
".",
|
||||
"-p",
|
||||
"test*.py"
|
||||
],
|
||||
"python.testing.pytestEnabled": false,
|
||||
"python.testing.unittestEnabled": true
|
||||
}
|
||||
@@ -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])
|
||||
Reference in new issue
Block a user