/// <summary> /// Prints a welcome message to the console /// </summary> public void printWelcome() { ConsoleInputAndOutputProvider consoleOutputProvider = new ConsoleInputAndOutputProvider(); //call the console output provider's writeLine method and pass in the welcome; this outputs the rules to the console consoleOutputProvider.WriteLine(this.Welcome); }
/// <summary> /// Prints the rules to the console /// <param name="rules"> The rules of the game, to be printed to the console by this method /// </summary> public void printRules(string rules) { ConsoleInputAndOutputProvider consoleOutputProvider = new ConsoleInputAndOutputProvider(); //call the console output provider's writeLine method and pass in the rules; this outputs the rules to the console consoleOutputProvider.WriteLine(rules); }