示例#1
0
        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="name"></param>
        /// <param name="color"></param>
        /// <param name="controller"></param>
        public Bot(string name, string color, Controller controller)
        {
            gameController = controller;
            this.name      = name;
            this.color     = color;
            InitTimer();
            score          = 0;
            gameController = controller;

            api = new ApiCall("http://127.0.0.1:8080/");
            api.AddAcceptType("application/json");
        }