static void Main(string[] args) { GuessGame guessGame = new GuessGame(); guessGame.GenerateRandomNumber(); switch (ChooseStartPlaying()) { case 1: while (true) { Console.Write("Enter your guess ==> "); guessGame.GuessingNumber = Convert.ToInt32(Console.ReadLine()); if (guessGame.GameResult(guessGame.GuessNumber, guessGame.GuessingNumber, guessGame.Turn)) { break; } } break; case 2: break; } DisplayResult(guessGame); }