public Client(string host, int port) { this._host = host; this._port = port; this._socket = new Socket(SocketType.Stream, ProtocolType.Tcp); this._trame = new ServerPlayerTrame(this._socket); int.TryParse(ConfigurationManager.AppSettings["MinMaxDepthSplit"], out this._depthSplit); int.TryParse(ConfigurationManager.AppSettings["MinMaxDepthNoSplit"], out this._depthNoSplit); this._iaNoSplit = new MinMax(this._depthNoSplit, false); this._iaSplit = new MinMax(this._depthSplit, true); this._indexes = new Dictionary <Race, int>() { { Race.HUM, 2 }, { Race.THEM, 0 }, { Race.US, 0 } }; }
private void _computeMoveNoSplit() { this._iaNoSplit = new MinMax(this._depthNoSplit, false); this._iaNoSplit.ComputeNextMove(this._board); }
private void _computeMoveSplit() { this._iaSplit = new MinMax(this._depthSplit, true); this._iaSplit.ComputeNextMove(this._board); }