Exemple #1
0
        public void Setup()
        {
            Console.ForegroundColor = ConsoleColor.White;
            OutputHandler.ShowFlashScreen();
            OutputHandler.ShowHeader();

            Level gamelevel = Level.Easy;

            string[] userSetUp = InputHandler.GetNameFromUser();
            switch (userSetUp[2])
            {
            case "h":
                gamelevel = Level.Hard;
                break;

            case "m":
                gamelevel = Level.Medium;
                break;

            default:
                gamelevel = Level.Easy;
                break;
            }

            _gm.Player1.Name      = userSetUp[0];
            _gm.Player1.IsPC      = false;
            _gm.Player1.Win       = 0;
            _gm.Player1.GameLevel = gamelevel;

            _gm.Player2.Name      = userSetUp[1];
            _gm.Player2.Win       = 0;
            _gm.Player2.GameLevel = gamelevel;

            //vs Computer
            if (userSetUp[1] == "")
            {
                _gm.Player2.Name = "Computer";
                _gm.Player2.IsPC = true;
            }
        }
Exemple #2
0
 public static void ResetScreen(Player[] player)
 {
     Console.Clear();
     OutputHandler.ShowHeader();
     OutputHandler.ShowAllPlayer(player);
 }