Live data from Hacker News

How to solve the "Mastermind" guessing game? (2009)

stackoverflow.com

31–33 of 33 posts

Re: How to solve the "Mastermind" guessing game? (2009)

#31

Earlier quoted context omitted.

That doesn't even make sense. Are any solutions more likely than any others? How are you getting an "optimal play algorithm" when the entire game is about using what you know to filter the solutions that are still possible?

You're framing it like an information extraction game, but it is also frameable as a zero-sum minimax game. And its an easy, and common solution to games like this. Read up. https://en.wikipedia.org/wiki/Mastermind_(board_game)#Algori... https://en.wikipedia.org/wiki/Minimax#In_zero-sum_games One of the early solutions to mastermind was by Donald Knuth. paper: https://www.cs.uni.edu/~wallingf/teaching/cs3530/resource…

It just says the "minimax" solution for the person who chooses the pattern is to pick randomly from patterns with more than one color.

Re: How to solve the "Mastermind" guessing game? (2009)

#32

Earlier quoted context omitted.

You're framing it like an information extraction game, but it is also frameable as a zero-sum minimax game. And its an easy, and common solution to games like this. Read up. https://en.wikipedia.org/wiki/Mastermind_(board_game)#Algori... https://en.wikipedia.org/wiki/Minimax#In_zero-sum_games One of the early solutions to mastermind was by Donald Knuth. paper: https://www.cs.uni.edu/~wallingf/teaching/cs3530/resource…

It just says the "minimax" solution for the person who chooses the pattern is to pick randomly from patterns with more than one color.

Well the game is trivial for the person picking the pattern. So I dont expect the optimal play for them to be interesting.

Re: How to solve the "Mastermind" guessing game? (2009)

#33

Earlier quoted context omitted.

It just says the "minimax" solution for the person who chooses the pattern is to pick randomly from patterns with more than one color.

Well the game is trivial for the person picking the pattern. So I dont expect the optimal play for them to be interesting.

If the game is trivial for the person picking, what is the strategy for the player after the filtering I described?
Post reply on HN