Beispiel #1
0
 /// <summary>
 /// Once the bidding is over, this function ends the bidding phase and starts the tricks phase.
 /// </summary>
 public void EndBiddingRound()
 {
     if (!phase1.InBiddingPhase && phase2 == null)
     {
         var result = phase1.FinalizeBidding();
         teams = result.teams;
         phase2 = new WhistController(Players, result.firstPlayer, Trump, new StandardReferee());
     }
 }
Beispiel #2
0
        public void StartNewRound()
        {
            gameManager.StartNewRound();
            infoPanelVM.ClearActionLog();
            whistController = null;
            if (!gameManager.IsGameInProgress)
            {
                EndGame();
                NotifyUI();
                return;
            }
            CurrentGameState = GameState.BIDDING;
            NotifyUI();

            while (Round.InBiddingPhase && Round.CurrentPlayer != gameManager.HumanPlayer)
            {
                AIBid();
            }
            NotifyUI();
        }
Beispiel #3
0
 public async void EndBiddingRound()
 {
     Round.EndBiddingRound();
     whistController = Round.Start();
     CurrentPlayer = Round.CurrentPlayer;
     while (Round.TrickInProgress && Round.CurrentPlayer != null && Round.CurrentPlayer != gameManager.HumanPlayer)
     {
         await AsyncPlayCardAI();
     }
     NotifyUI();
 }