/// <summary> /// 石を置く(CPU専用) /// </summary> /// <returns></returns> public async Task SetStoneAutoAsync() { ICellSelector selector = CreateCellSelector(); var pos = await selector.SelectAsync().ConfigureAwait(true); await SetStoneAsync(pos).ConfigureAwait(true); }
private async Task <Point?> CallSelectorAsync(ICellSelector selector, IEnumerable <Point> cells) { if (!cells.Any()) { return(null); } return(await selector.SelectAsync(cells)); }
private ICellSelector GetCellSelector() { if (_selector == null) { _selector = CellSelectorFactory.GetSelector(Board, _selfType); //_minMaxSelector = new MinMaxFunctionSelector(Board, _selfType, true); } return(_selector); }