GillesVandewiele / Wordle-Bot

An entropy-based strategy to wordle
MIT License
27 stars 12 forks source link

Fix bug: missing function argument #7

Closed woctezuma closed 2 years ago

woctezuma commented 2 years ago

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