GillesVandewiele / Wordle-Bot

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

`calculate_pattern` duplicate letter follow-up #3

Closed gbotev1 closed 2 years ago

gbotev1 commented 2 years ago

I think you need to do two passes in order to also catch corner cases like calculate_pattern('rower', 'goner'), which currently returns (1, 2, 0, 2, 2) instead of (0, 2, 0, 2, 2).

Originally posted by @gbotev1 in https://github.com/GillesVandewiele/Wordle-Bot/issues/2#issuecomment-1038630546

GillesVandewiele commented 2 years ago

Thank you for reporting this. Should be fixed with next push, and I credited you in the code.