Motivation
This one was purely recreational. The idea came to me mid-flight, and nearly the entire thing was written before landing. The question was simple: given what you know about a Hangman game in progress, what's the optimal next letter to guess?
Implementation
The solver uses a comprehensive English word list to evaluate the current game state — the known letters, their positions, and the letters already ruled out. From there it scores remaining candidates by letter frequency across all words that still fit the pattern, recommending whichever letter appears most often. A second mode flips the dynamic: the script picks a word and the user guesses against it, with the solver tracking state in the background.
Tools & Technologies