Difference between revisions of "DisplayMenu"

From TRCCompSci - AQA Computer Science
Jump to: navigation, search
(Created page with " private static void DisplayMenu() { Console.WriteLine(); Console.WriteLine("========="); Console.WriteLine("MAIN MENU");...")
 
Line 1: Line 1:
 +
<syntaxhighlight lang="c#">
 
         private static void DisplayMenu()
 
         private static void DisplayMenu()
 
         {
 
         {
Line 11: Line 12:
 
             Console.WriteLine();
 
             Console.WriteLine();
 
         }
 
         }
 +
</syntaxhighlight>
 
This is just 9 console.writelines that can be called up for when needed. This doesn't have an functions in just able to display menu all choices would have to be handled by other parts of the program.
 
This is just 9 console.writelines that can be called up for when needed. This doesn't have an functions in just able to display menu all choices would have to be handled by other parts of the program.

Revision as of 12:26, 14 November 2017

        private static void DisplayMenu()
        {
            Console.WriteLine();
            Console.WriteLine("=========");
            Console.WriteLine("MAIN MENU");
            Console.WriteLine("=========");
            Console.WriteLine();
            Console.WriteLine("1. Play game with random start hand");
            Console.WriteLine("2. Play game with training start hand");
            Console.WriteLine("9. Quit");
            Console.WriteLine();
        }

This is just 9 console.writelines that can be called up for when needed. This doesn't have an functions in just able to display menu all choices would have to be handled by other parts of the program.