
About
Mastermind is a code-breaking game for two players invented in Israel, resembling the earlier pencil-and-paper game Bulls and Cows. Mastermind-Game is a Python script that can play either the code-breaker or code-maker role in Mastermind. While playing, it displays the set of remaining possible codes ('left code') and highlights the 'best codes' — the guesses statistically most likely to solve the puzzle in the fewest attempts.
Additional notes
- External link
- A detailed explanation of the 'left code' and 'best codes' algorithm is published on the author's site.