Re:How to solve the "Mastermind" guessing game? (2009)
by nestorD on Saturday January 13, 2024 @04:11PM
(#38984610)
I remember writing a Mastermind solver in Ocaml, about a year after getting started with programming.
The solution space is fairly small so I would start with a random guess then, of all solutions that are still legal, pick the one that would -- at worst -- reduce the solution space the most (essentially a one move ahead minimax).
[ Parent
| on HN ]
There are no comments on this comment yet.