资 源 简 介
This project demonstrates several state-of-the-art strategies to solve the Mastermind puzzle and its variant, Bulls and Cows. Detailed analysis is provided along with an optimized program solver.
Introduction
Mastermind is a two-player game in which one player, the code-maker thinks of a secret codeword, and the other player, the code-breaker makes successive guesses in an attempt to reveal the secret. For each guess, the code-maker responds with a hint of how close the guess is to the secret. Details of the rules can be found here.
The standard Mastermind game is played using four pegs and six colors. A codeword can contain the same color more than once. A popular variant is Bulls and Cows, where ten colors are used but no repetition of color is allowed in a codeword. Details of Bulls and Cows can be found here.
The objecti