public void CheckNum(int userNum) { if (userNum == randomNum && tries < 5) { GuessNumberArgs args = new GuessNumberArgs { Num = userNum, Tries = tries, Result = "You WIN!" }; OnGameFinished(args); } }
protected virtual void OnGameFinished(GuessNumberArgs e) { Console.WriteLine($""); }