You are asked to write a Java program about the classic gamecalled Mastermind.
The digits 1-6 are used to represent the colours of the codepegs. At the beginning of the program, the code maker, i.e., theprogram itself, will randomly generate a secret code consists of 4code pegs. In each round, the code breaker, i.e., the player, willguess the secret code by inputting 4 digits separated by space. Thecode maker will then check if the code pegs in the guess are thesame as the code pegs in the secret code. If the guess and thesecret code are the same, the player win.
PayPal Gateway not configured
PayPal Gateway not configured