public class MasterMindProgram
public static void Main()
const int MAX_TRIAL = 12;
char[] cm = code.ToCharArray();
Console.WriteLine("Kitaláltam egy 4 jegyű kódot. Találd ki max {0} lépésből!", MAX_TRIAL);
while(n <= MAX_TRIAL && !found) {
string trial = Console.ReadLine();
char[] cb = trial.ToCharArray();
Console.Write("{0} {1}:", n, trial);
Console.WriteLine("1111");
for(int i=0; i < cb.Length; i++) {
for(int j=0; j < cm.Length; j++) {
Console.WriteLine("NYERTÉL!");
Console.WriteLine("VESZTETTÉL!");