Exemplo n.º 1
0
        /// <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);
        }
Exemplo n.º 2
0
        /// <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);
        }