Пример #1
0
        public static void Main(string[] args)
        {
            /*
             */
            Search.init(3);
            benchStart();
            return;

            int       port   = 4000;    // int.Parse (Console.ReadLine ());
            string    ip     = "127.0.0.1";
            TcpClient client = new TcpClient(ip, port);

            stream = client.GetStream();


            while (true)
            {
                Byte[] data         = new byte[256];
                string incomingData = "";

                Int32 bytes = stream.Read(data, 0, data.Length);
                incomingData = Encoding.Default.GetString(data, 0, bytes);
                MoveHandler.playMove(formatBoard(incomingData));
                playMove(MoveHandler.getMoveString());
            }
        }
Пример #2
0
 public static string playBotMove(string boardMsg)
 {
     MoveHandler.playMove(formatBoard(boardMsg));
     return(MoveHandler.getMoveString());
 }