Spaces:
Sleeping
Sleeping
KAI MAURIN-JONES
commited on
Commit
•
80e3992
1
Parent(s):
5e121fa
app updates
Browse files- wordle_functions.py +12 -12
wordle_functions.py
CHANGED
@@ -494,18 +494,18 @@ def wordle_wizard(word_list: list, max_guesses: int = None,
|
|
494 |
words_matching_correct_all = []
|
495 |
for word in word_list:
|
496 |
word_set = set()
|
497 |
-
|
498 |
-
for tup in perfect_letters: # changed for python 3.8
|
499 |
-
|
500 |
-
|
501 |
-
|
502 |
-
|
503 |
-
|
504 |
-
|
505 |
-
|
506 |
-
|
507 |
-
|
508 |
-
|
509 |
|
510 |
#### excluding words with letters in known incorrect positions
|
511 |
for letter, positions in wrong_pos_dict.items():
|
|
|
494 |
words_matching_correct_all = []
|
495 |
for word in word_list:
|
496 |
word_set = set()
|
497 |
+
for letter, pos in perfect_letters:
|
498 |
+
# for tup in perfect_letters: # changed for python 3.8
|
499 |
+
# tup_list = []
|
500 |
+
# for item in tup:
|
501 |
+
# print (item)
|
502 |
+
# tup_list.append(item)
|
503 |
+
# tup_list[0] = letter
|
504 |
+
# print(tup_list[0])
|
505 |
+
# tup_list[1] = pos
|
506 |
+
# print(tup_list[1])
|
507 |
+
if word[pos] == letter:
|
508 |
+
words_matching_correct_all.append(word)
|
509 |
|
510 |
#### excluding words with letters in known incorrect positions
|
511 |
for letter, positions in wrong_pos_dict.items():
|