예제 #1
0
        static void Main(string[] args)
        {
            GetAppInfo(); // Run GetAppInfo function to get info

            while (true)
            {
                TestShakespeare ts = new TestShakespeare();
                ts.Start();
                while (ts.ga.BestFitness < 1)
                {
                    ts.Update();
                }
                // Ask to play again
                PrintColourMessage(ConsoleColor.Yellow, "Run again? [Y or N]");

                // Get answer
                string answer = Console.ReadLine().ToUpper();
                if (answer == "Y")
                {
                    continue;
                }
                else if (answer == "N")
                {
                    return;
                }
                else
                {
                    return;
                }
            }
        }
예제 #2
0
        static void Main(string[] args)
        {
            TestShakespeare test  = new TestShakespeare();
            testFunkcja     test2 = new testFunkcja();

            test2.Start();
            test.Start();
            Console.ReadLine();
        }