DisplayMenu

From TRCCompSci - AQA Computer Science
Revision as of 14:45, 14 November 2017 by Mfrederick (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
        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 any functions in just able to display menu all choices would have to be handled by other parts of the program. This is easier to view by the programmer like this as you can clearly see what the text will look like when displayed.