Wordle helper
I decided to try and improve my react skills by creating a small single page application to help solve wordle puzzles. If you dont know what wordle is a game where you get 6 guesses to get todays word. Each guess shows you letters in the correct word.
The first versoin of my solution doesnt allow the position but allows entry of correct and incorrect letters whittling down the available words.
I started by looking at the source code of the wordle. There are two arrays of words, one is know words the other is real wordle words, the list had 2315 words (though New York times has since removed some).
I saved the list as a json file and used create react app to make a blank react application.
Next I created a context to hold the list of available words.
npx create-react-app wordle-solver
Next I added a context wordsContext.js which initialised the word list from the json. To this I created a wordsReducer.js reducer which enabled filtering based on letters inputted.
Then I added a sime form with two inputs for valid letters and invalid letter to exclude. On input the letter sets are dispatched and filtered by the reducer.
The source code is available on my github and the solver is deployed to azure.
I used a github action to create a ci pipline which automatically publishes the image whever the code is updated.
Next steps are to add the positional aspect, and add some unit tests to the solution and ci pipeline.