Beispiel #1
0
        static void Main(string[] args)
        {
            VingadoresController herois = new VingadoresController();

            int opcao = 0;

            do
            {
                Console.Clear();
                Console.ForegroundColor = ConsoleColor.White; // atribuir cor a letra no terminal
                Console.WriteLine($@"
                        -------Vingadores--------
                <------------------------------------->
                           Escolha Seu Heroi
                          1. Capitão América
                          2. Homem de Ferro
                <------------------------------------->
                ");
                opcao = int.Parse(Console.ReadLine());

                switch (opcao)
                {
                case 1:
                    //Capitão America
                    herois.CapitaoAmerica();
                    break;

                case 2:
                    //Homem de Ferro
                    herois.HomemDeFerro();
                    break;

                default:
                    Console.WriteLine("Por favor escolha uma das opções anterioes!");
                    break;
                }
            }while(opcao != 0);
        }
Beispiel #2
0
        static void Main(string[] args)
        {
            VingadoresController Ving = new VingadoresController();

            Ving.JogoVingadores();
        }