Beispiel #1
0
        static void AutoTest()
        {
            Console.WriteLine("Perform a number: ");
            String s          = Console.ReadLine();
            int    userNumber = int.Parse(s);

            Console.Clear();
            Console.WriteLine("Your number is {0}!", NumberGuess.StartGuess(userNumber));
            Console.ReadKey();
        }
Beispiel #2
0
 static bool AutoTest(int userNumber)
 {
     return(NumberGuess.StartGuess(userNumber) == userNumber);
 }