Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            TakEngine.Properties.Settings.Default.debug = true;
            //var test = TakEngine.Notation.TakPGN.LoadFromFile("example_notation.ptn");
            while (true)
            {
                Console.Write("(interactive, automated, analyze)? ");
                var response = "interactive";
                if (response == "interactive")
                {
                    GameLoop();
                    break;
                }
                else if (response == "automated")
                {
                    //NonInteractiveTest.RunTest(
                    //    System.IO.Path.Combine(
                    //        System.IO.Path.GetTempPath(),
                    //        "tak_ai_test.txt"));

                    NonInteractiveTest.FindQuickWin(
                        System.IO.Path.Combine(
                            System.IO.Path.GetTempPath(),
                            "tak_fast_win.txt"));
                }
                else if (response == "analyze")
                {
                    Analysis();
                }
                else
                {
                    Console.WriteLine("Invalid response");
                }
            }
        }
Ejemplo n.º 2
0
        static void Main(string[] args)
        {
            var test = TakEngine.Notation.TakPGN.LoadFromFile("example_notation.ptn");

            while (true)
            {
                Console.Write("(interactive, automated): ");
                var response = Console.ReadLine().Trim();
                if (response == "interactive")
                {
                    GameLoop();
                    break;
                }
                else if (response == "automated")
                {
                    NonInteractiveTest.RunTest("c:\\temp\\tak_ai_test.txt");
                }
                else
                {
                    Console.WriteLine("Invalid response");
                }
            }
        }