public static void playvsplayer(Playgame playgame) { while (true) { Console.WriteLine("Введите ответ"); string answer = Console.ReadLine(); Console.WriteLine(playgame.nextStep(answer)); playgame.nextStep(answer); } }
public static void playvscomp(Playgame playgame) { while (true) { Console.WriteLine($"Введите ответ длинной-{lenghtnumber}"); string answer = Console.ReadLine(); Console.WriteLine(playgame.nextStep(answer)); playgame.nextStep(answer); } }