Skip to content

Commit

Permalink
Merge pull request #6 from woctezuma/remove-redundancy
Browse files Browse the repository at this point in the history
Reuse variable as dict key
  • Loading branch information
GillesVandewiele committed Jul 23, 2022
2 parents b9962dc + bdd1734 commit 0f26591
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wordle.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def main():
guess_word = 'tares'
all_words = set(all_dictionary)
info = calculate_pattern(guess_word, WORD_TO_GUESS)
words = pattern_dict['tares'][info]
words = pattern_dict[guess_word][info]
all_words = all_words.intersection(words)
init_round = 1
else:
Expand Down

0 comments on commit 0f26591

Please sign in to comment.