0
$\begingroup$

So as all of you know, Cows and Bulls is a pen and paper adaptation of the popular board game Mastermind. I would like to design a game that would allow duplicate numbers for the code and assign perhaps a third variable called "milk" to ascertain the number of repetitions in the code.

We will be playing with five digits instead of four, so what exactly would be the guidelines we would have to follow in order to accommodate "milk" as an additional parameter? Please explain with examples as well.

$\endgroup$

closed as primarily opinion-based by Wen1now, boboquack, JMP, Glorfindel, APrough Nov 7 '17 at 13:38

Many good questions generate some degree of opinion based on expert experience, but answers to this question will tend to be almost entirely based on opinions, rather than facts, references, or specific expertise. If this question can be reworded to fit the rules in the help center, please edit the question.

  • $\begingroup$ You could add any new information you want as long as the solution could be uniquely deduced. Are you asking us to design a game for you? If so, that's not on-topic here. $\endgroup$ – Deusovi Nov 7 '17 at 9:11
  • $\begingroup$ In the boardgames.stackexchange.com, there were no relevant tags that could be associated. $\endgroup$ – JavaiMaster Nov 7 '17 at 9:20
0
$\begingroup$

Interesting question. I think that one way you could implement the "milk" is to provide it as a third rating for each guess. The "milk" number would reflect how many of the colours that are present in the guess and the solution that also have the correct number of repetitions. For example:

if the solution was AABCD, and the guess was ABCDE there would be 1 bull, 3 cows and 3 milk (bottles?), and if the guess was instead AACDE, there would be 2 bulls, 2 cows and 4 milk bottles. This measure would always be less than or equal to the sum or the bulls and cows. When the solution is found, then the milk number will of course be 5.

$\endgroup$
  • $\begingroup$ Is there somehow maybe we could tweak it to know whether the "milk" number was a cow or a bull? Or maybe avoid it altogether if the number is in a bull position? @micsthepick $\endgroup$ – JavaiMaster Nov 7 '17 at 9:43
  • $\begingroup$ @JavaiMaster The milk number counts both cows and bulls. $\endgroup$ – micsthepick Nov 7 '17 at 9:48
  • $\begingroup$ Okay Thanks. This'll be accepted as the correct answer. $\endgroup$ – JavaiMaster Nov 7 '17 at 10:05

Not the answer you're looking for? Browse other questions tagged or ask your own question.