Esempio n. 1
0
    public static void Main(string[] args)
    {
        GuessingGame userTry = new GuessingGame();

        int secret = userTry.GenerateSecret();
        int userInput;

        Console.WriteLine("I have a number between 1 and 1000." + "( " + secret + " )");
        Console.WriteLine("Please enter your first guess: ");
        userInput = Convert.ToInt32(Console.ReadLine());

        userTry.CheckGuess(userInput, secret);
    }