Beispiel #1
0
        public static void MainMenu()
        {
            Dictionary <string, ConsoleMenuBase.ConfirmOption> dict = new Dictionary <string, ConsoleMenuBase.ConfirmOption>();

            ConsoleMenuBase.ConfirmOption confirmOption = PlayOption;
            dict.Add("play", confirmOption);
            confirmOption = SettingsOption;
            dict.Add("Settings", confirmOption);
            confirmOption = ExitOption;
            dict.Add("Exit", confirmOption);

            ConsoleMenuBase menuScreen = new ConsoleMenuBase("TicTocToe Main Menu", dict);
        }
Beispiel #2
0
        private static void SettingsMenu()
        {
            Dictionary <string, ConsoleMenuBase.ConfirmOption> dict = new Dictionary <string, ConsoleMenuBase.ConfirmOption>();

            ConsoleMenuBase.ConfirmOption confirmOption = Settings_IsP1CPUOption;
            dict.Add($"Player 1 CPU? = {IsP1CPU}", confirmOption);
            confirmOption = Settings_IsP2CPUOption;
            dict.Add($"Player 2 CPU? = {IsP2CPU}", confirmOption);
            confirmOption = Settings_P1Difficulty;
            dict.Add($"Player 1 Difficulty = {P1Difficulty}", confirmOption);
            confirmOption = Settings_P2Difficulty;
            dict.Add($"Player 2 Difficulty = {P2Difficulty}", confirmOption);
            confirmOption = Settings_BackOption;
            dict.Add("Back", confirmOption);


            ConsoleMenuBase menuScreen = new ConsoleMenuBase("TicTocToe Settings", dict);
        }