Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bug: missing function argument #7

Merged

Conversation

woctezuma
Copy link
Contributor

@woctezuma woctezuma commented Jul 22, 2022

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

@GillesVandewiele GillesVandewiele merged commit f633495 into GillesVandewiele:main Jul 23, 2022
@woctezuma woctezuma deleted the fix-function-argument branch November 6, 2023 22:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants