Solving Mastermind with Maximum Entropy

by sbondaryevon 2/13/2026, 4:21 PMwith 1 comments

by sbondaryevon 2/13/2026, 4:21 PM

Inspired 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.