static public string getProandBasicTips() //method to create a string of tips to send back to user { ProTips usersTips = new ProTips("Don't worry if you lost. It's just a game.", "Don't ever eat snow.", "Guess better next time."); string allTips = (usersTips.seriousTip + "\n" + usersTips.funnyTip + "\n" + usersTips.proTip); return(allTips); }
static public void goodbye() { string finalStatLine = RecordBook.getFinalStatLine(); //gets games, series won from RecordBook Console.WriteLine(finalStatLine); string award = RecordBook.checkForHallOfFameAward(); //checks for an award if (award != null) //displays the award only if award was won { Console.WriteLine("Congrats! You won the " + award + "!"); } string proTips = ProTips.getProandBasicTips(); //gets tips from ProTips class (derived from BasicTips) Console.WriteLine("Here are some final tips:"); Console.WriteLine(proTips); //display tips Console.WriteLine(""); Console.WriteLine("Thanks for Playing. Good-bye!"); Console.ReadLine(); }