Ejemplo n.º 1
0
        public void Setup()
        {
            Console.ForegroundColor = ConsoleColor.White;
            ControlOutput.ShowFlashScreen();
            ControlOutput.ShowHeader();

            GameLevel gamelevel = GameLevel.Easy;

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

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

            default:
                gamelevel = GameLevel.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;
            }
        }
 public static void ResetScreen(Player[] player)
 {
     Console.Clear();
     ControlOutput.ShowHeader();
     ControlOutput.ShowAllPlayer(player);
 }