🤖 Challenge: Wordle solver

But wait, the humans can't have all the fun! Yes, our computer friends want to play Wordle too. Our challenge to you now that you've written a Wordle clone is to write a Wordlesolver.

This is a freeform challenge, and we're excited to see what you produce!

Think about some of the ways you can reduce the set of dictionary words based on previous guesses.

It's ok if your Wordle solver takes in the target word as an input for verification, but it would be cheating to use it otherwise. 🥸

✨Suggested signatures
✨Suggested signatures

You could try something like the following as an overall signature:

solvemight call two helper functions in a loop: