What is the best strategy for Master Mind?

Team: 48

School: Mountain Elementary

Area of Science: math


Interim: 1. What is the project about? (the definition of the problem)
My project is about the game of Mastermind. Mastermind is a game where there is a code maker and a code breaker. The code maker makes a secret code that the code breaker tries to figure out.
The problem I am trying solve is to find out the best strategy for mastermind.

2. How are you/do you plan to solve this problem computationally?
I plan to solve this problem by writing a computer code in python. The computer code makes a secret code that the play has to try to guess. It will ask you question at the beginning, like “how many colors (1 to 6)”, and the same thing for pegs. Then it will tell you what color pegs you can use. Then the player guesses, and the computer tells you the grade and how many combinations are left. You can also tell the computer what strategy to use.

3. What progress have you made up to this point? (research, code, etc.)
I made a computer code that can play Mastermind. I also made a poster with data and examples of the strategies. I also made a slide show.


4. What results are you expecting?
I am expecting that the random strategy will win. I expect the ‘single’ strategy to be the worst.




Team Members:

  Michael Petersen

Sponsoring Teacher: NA

Mail the entire Team