
MastRmind peg game: Console
play.RdThis function starts an interactive command line game of mastRmind. The player has a certain number of opportunities to guess a secret combination of colors (referred to as **secret code** in the original Mastermind peg game). The goal is to guess the secret code within the given number of attempts. After each guess, feedback is provided in the form of black and white pegs. A black peg means a correct color in the correct position. A white peg means a correct color in the wrong position.