Exemplo n.º 1
0
        public static void GameModeMenu(out bool gameModeRecall, IUser user)
        {
            var menuLogic = new MenuOptionLogic();
            var welcome   = "";
            var count     = 0;

            foreach (var item in DataAccess.Instance.GetUsers())
            {
                if (item.Username == user.Username)
                {
                    welcome = "Welcome back " + user.Username + ", please make your selection:";
                    count++;
                }
            }
            if (count == 0)
            {
                welcome = "Welcome " + user.Username + ", please make your selection:";
                DataAccess.Instance.CreateNewUser(user.Username);
            }

            Console.WriteLine();
            MessageDisplayUtilities.MenuMessageDisplay("**********************************************");
            Console.WriteLine();
            MessageDisplayUtilities.MenuMessageDisplay(welcome);
            MessageDisplayUtilities.MenuMessageDisplay("1) Sudden Death");
            MessageDisplayUtilities.MenuMessageDisplay("2) Triple Threat");
            MessageDisplayUtilities.MenuMessageDisplay("3) Drive For Five");
            MessageDisplayUtilities.MenuMessageDisplay("4) The Ten Tour");
            MessageDisplayUtilities.MenuMessageDisplay("5) Exit Application");
            Console.WriteLine();
            MessageDisplayUtilities.MenuMessageDisplay("**********************************************");

            gameModeRecall = menuLogic.GameModes(user);
        }
Exemplo n.º 2
0
        public static void GameMenu(out bool menuRecall, IUser user)
        {
            var menuLogic = new MenuOptionLogic();

            Console.WriteLine();
            MessageDisplayUtilities.MenuMessageDisplay("**********************************************");
            Console.WriteLine();
            MessageDisplayUtilities.MenuMessageDisplay("Please make your selection: " + user.Username);
            MessageDisplayUtilities.MenuMessageDisplay("1) Rock");
            MessageDisplayUtilities.MenuMessageDisplay("2) Paper");
            MessageDisplayUtilities.MenuMessageDisplay("3) Scissors");
            MessageDisplayUtilities.MenuMessageDisplay("4) Current Score");
            Console.WriteLine();
            MessageDisplayUtilities.MenuMessageDisplay("**********************************************");

            menuRecall = menuLogic.PlayerVsAiChoiceLogic(user);
        }
Exemplo n.º 3
0
        public static void LoginMenu(out bool loginRecall, IUser user)
        {
            var menuLogic = new MenuOptionLogic();

            Console.WriteLine();
            MessageDisplayUtilities.MenuMessageDisplay("**********************************");
            MessageDisplayUtilities.MenuMessageDisplay("*                                *");
            MessageDisplayUtilities.MenuMessageDisplay("*  Make Your Selection:          *");
            MessageDisplayUtilities.MenuMessageDisplay("*  1) Create a new username      *");
            MessageDisplayUtilities.MenuMessageDisplay("*  2) Load an existing username  *");
            MessageDisplayUtilities.MenuMessageDisplay("*  3) View Leaderboard           *");
            MessageDisplayUtilities.MenuMessageDisplay("*  4) View All Scores            *");
            MessageDisplayUtilities.MenuMessageDisplay("*  5) Exit Application           *");
            MessageDisplayUtilities.MenuMessageDisplay("*                                *");
            MessageDisplayUtilities.MenuMessageDisplay("**********************************");

            loginRecall = menuLogic.LoginMenuLogic(out user);
            var gameModeRecall = true;

            while (gameModeRecall)
            {
                MenuUtilities.GameModeMenu(out gameModeRecall, user);
            }
        }