roedoejet/AnyLanguage-Word-Guessing-Game

Show more info about the answer word

Closed this issue · 2 comments

I was wondering if there is a neat way to show more info about the answer word. For instance, to help players of my Wordle games to build their vocab, I'd like to show the meaning of the answer word (suppose there's a dictionary mapping the source and target language), and maybe a link to an online dictionary (e.g. https://www.thefreedictionary.com/{WORD}). And crucially, info about the answer word will only be shown after all guesses have failed or a guess is successful. Maybe it's possible to add more into to the page that shows correct answer of the day? Thanks again for sharing the template! 👍

Hey @howard-haowen - yes @keoladonaghy did this for Hulihua - there is a comment thread on the blog about how to do it, but the relevant code is here: https://github.com/keoladonaghy/Hawaiian-Wordle/blob/main/src/components/modals/StatsModal.tsx

Because there are so many variations of urls and where somebody might want the link - I don't think I'll try to implement a general solution, but you can definitely follow the implementation above to get some ideas! Good luck :)

Thanks for showing me the code! 👍