Пример #1
0
        static void Main(string[] args)
        {
            List <Tuple <int, int, int> > chessPointList = new List <Tuple <int, int, int> >();

            chessPointList.Add(new Tuple <int, int, int>(7, 6, 2));
            //chessPointList.Add(new Tuple<int, int, int>(6, 7, 1));
            //chessPointList.Add(new Tuple<int, int, int>(7, 8, 2));
            //chessPointList.Add(new Tuple<int, int, int>(7, 10, 1));


            RenjuAiHelper renjuAiHelper = new RenjuAiHelper();

            renjuAiHelper.AiFileName            = @"C:\Users\Zmrbak\Desktop\piskvork (1)\pbrain-Yixin2018.exe";
            renjuAiHelper.AiResponse           += RenjuAiHelper_AiResponse;
            renjuAiHelper.AiCpuUtilizationRate += RenjuAiHelper_AiCpuUtilizationRate;
            renjuAiHelper.Size          = 15;
            renjuAiHelper.Rule          = 4;
            renjuAiHelper.Timeout_turn  = 5000;
            renjuAiHelper.Timeout_match = 50000;
            renjuAiHelper.StartAi();


            renjuAiHelper.SetBoard(chessPointList);
            Console.ReadLine();

            renjuAiHelper.SetBoard(chessPointList);
            Console.ReadLine();

            renjuAiHelper.SetBoard(chessPointList);
            Console.ReadLine();

            renjuAiHelper.End();
        }
Пример #2
0
        static void Main(string[] args)
        {
            List <Tuple <int, int, int> > chessPointList = new List <Tuple <int, int, int> >();

            chessPointList.Add(new Tuple <int, int, int>(7, 6, 2));
            chessPointList.Add(new Tuple <int, int, int>(6, 7, 1));
            chessPointList.Add(new Tuple <int, int, int>(7, 8, 2));
            chessPointList.Add(new Tuple <int, int, int>(7, 10, 1));


            RenjuAiHelper renjuAiHelper = new RenjuAiHelper();

            renjuAiHelper.AiFileName  = @"C:\Users\Zmrbak\Desktop\piskvork (1)\pbrain-pela.exe";
            renjuAiHelper.AiResponse += RenjuAiHelper_AiResponse;
            renjuAiHelper.Size        = 15;
            renjuAiHelper.Rule        = 4;
            renjuAiHelper.StartAi();


            renjuAiHelper.SetBoard(chessPointList);

            Console.ReadLine();
            renjuAiHelper.End();
        }