Example #1
0
        /// <summary>
        /// 石を置く(CPU専用)
        /// </summary>
        /// <returns></returns>
        public async Task SetStoneAutoAsync()
        {
            ICellSelector selector = CreateCellSelector();
            var           pos      = await selector.SelectAsync().ConfigureAwait(true);

            await SetStoneAsync(pos).ConfigureAwait(true);
        }
Example #2
0
 private async Task <Point?> CallSelectorAsync(ICellSelector selector, IEnumerable <Point> cells)
 {
     if (!cells.Any())
     {
         return(null);
     }
     return(await selector.SelectAsync(cells));
 }
Example #3
0
 private ICellSelector GetCellSelector()
 {
     if (_selector == null)
     {
         _selector = CellSelectorFactory.GetSelector(Board, _selfType);
         //_minMaxSelector = new MinMaxFunctionSelector(Board, _selfType, true);
     }
     return(_selector);
 }