This commit fixes a bug in the original code, as a function is missing an argument. Without this fix, the following error is returned:
Traceback (most recent call last):
File "C:\Users\Wok\PycharmProjects\Wordle-Bot\wordle.py", line 135, in <module>
main()
File "C:\Users\Wok\PycharmProjects\Wordle-Bot\wordle.py", line 113, in main
entropies = calculate_entropies(candidates, all_words, pattern_dict)
File "C:\Users\Wok\PycharmProjects\Wordle-Bot\wordle.py", line 62, in calculate_entropies
for pattern in all_patterns:
NameError: name 'all_patterns' is not defined
This commit fixes a bug in the original code, as a function is missing an argument. Without this fix, the following error is returned: