/// <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()); } }
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(); }
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(); }