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.