コード例 #1
0
        protected override async Task ComputerTurnAsync()
        {
            if (SaveRoot !.GameStatus == EnumStatusList.ChooseGameType)
            {
                return; //hopefully this simple.
            }
            if (Test !.NoAnimations == false)
            {
                await Delay !.DelaySeconds(.75);
            }
            if (SaveRoot.GameStatus == EnumStatusList.Bidding)
            {
                int bids = ComputerAI.HowManyToBid(_model);
                _model !.BidChosen = bids;
                await _bidProcesses.ProcessBidAsync();

                return;
            }
            if (SaveRoot.GameStatus == EnumStatusList.CallShape)
            {
                await _shapeProcesses.ShapeChosenAsync(ComputerAI.GetShapeChosen());

                return;
            }
            await PlayCardAsync(ComputerAI.CardToPlay(this));
        }
コード例 #2
0
 public async Task BidAsync()
 {
     if (_gameContainer.BasicData.MultiPlayer)
     {
         await _gameContainer.Network !.SendAllAsync("bid", _model.BidChosen);
     }
     await _processes.ProcessBidAsync();
 }
コード例 #3
0
 public async Task BidAsync()
 {
     await _processes.ProcessBidAsync();
 }