Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Does this suffer from the classic Wordle edge case bug of not showing green and yellow for a duplicate letter in a wrong and right position?


Looking at the source code, I think there's no such bug. The `to_result` function first colors in green exact matches and counts wrong position letters, then it colors in yellow theses counted letters that are still uncolored. https://github.com/nolenroyalty/wardle/blob/main/app.py#L45




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: