Skip to content
Snippets Groups Projects
Program.cs 3.04 KiB
Newer Older
using System;
using Controller;
using Mastermind;

namespace Program
{
    class Program
    {
        static void Main()
        {
Fabian Mueller's avatar
Fabian Mueller committed
            while (true)
muellerfa100445's avatar
muellerfa100445 committed
            {
Fabian Mueller's avatar
Fabian Mueller committed
                Console.WriteLine("\n███╗   ███╗ █████╗ ███████╗████████╗███████╗██████╗ ███╗   ███╗██╗███╗   ██╗██████╗");
                Console.WriteLine("████╗ ████║██╔══██╗██╔════╝╚══██╔══╝██╔════╝██╔══██╗████╗ ████║██║████╗  ██║██╔══██╗");
                Console.WriteLine("██╔████╔██║███████║███████╗   ██║   █████╗  ██████╔╝██╔████╔██║██║██╔██╗ ██║██║  ██║");
                Console.WriteLine("██║╚██╔╝██║██╔══██║╚════██║   ██║   ██╔══╝  ██╔══██╗██║╚██╔╝██║██║██║╚██╗██║██║  ██║");
                Console.WriteLine("██║ ╚═╝ ██║██║  ██║███████║   ██║   ███████╗██║  ██║██║ ╚═╝ ██║██║██║ ╚████║██████╔╝");
                Console.WriteLine("╚═╝     ╚═╝╚═╝  ╚═╝╚══════╝   ╚═╝   ╚══════╝╚═╝  ╚═╝╚═╝     ╚═╝╚═╝╚═╝  ╚═══╝╚═════╝");
                Console.WriteLine("\nBitte wählen Sie aus:");
                Console.WriteLine("[S]tart Game");
                Console.WriteLine("[T]utorial");
                Console.WriteLine("[Q]uit");
                bool checkMenu = false;
                do
muellerfa100445's avatar
muellerfa100445 committed
                {
Fabian Mueller's avatar
Fabian Mueller committed
                    switch (Console.ReadLine().ToLower())
                    {
                        case "s":
                            Console.WriteLine("Starting Game ...");
                            MastermindController controller = new MastermindController();
                            controller.Play();
                            checkMenu = true;
Fabian Mueller's avatar
Fabian Mueller committed
                            break;
                        case "t":
                            Tutorial tutorial = new Tutorial();
                            tutorial.TutorialGame();
                            checkMenu = true;
Fabian Mueller's avatar
Fabian Mueller committed
                            break;
                        case "q":
                            Environment.Exit(0);
                            break;
                        default:
                            Console.WriteLine("Please pick a valid Option.");
                            break;
muellerfa100445's avatar
muellerfa100445 committed

Fabian Mueller's avatar
Fabian Mueller committed
                    }
muellerfa100445's avatar
muellerfa100445 committed
                }
Fabian Mueller's avatar
Fabian Mueller committed
                while (checkMenu == false);
muellerfa100445's avatar
muellerfa100445 committed
            }
Fabian Mueller's avatar
Fabian Mueller committed
        }
z004x4dd's avatar
z004x4dd committed
}