Playing Mastermind with Many Colors
Abstract: We analyze the general version of the classic guessing game Mastermind with positions and colors. Since the case , $\varepsilon>0$ a constant, is well understood, we concentrate on larger numbers of colors. For the most prominent case , our results imply that Codebreaker can find the secret code with guesses. This bound is valid also when only black answer-pegs are used. It improves the bound first proven by Chv\'atal (Combinatorica 3 (1983), 325--329). We also show that if both black and white answer-pegs are used, then the bound holds for up to colors. These bounds are almost tight as the known lower bound of shows. Unlike for , simply guessing at random until the secret code is determined is not sufficient. In fact, we show that an optimal non-adaptive strategy (deterministic or randomized) needs guesses.
Paper Prompts
Sign up for free to create and run prompts on this paper.