Solving Mastermind with Maximum Entropy
sbondaryev.devInspired by 3Blue1Brown's Wordle video I applied maximum entropy to Mastermind.
The solver averages 4.42 guesses across all 1296 possible codes.
Includes an interactive game where you can see the optimal next move.