예제 #1
0
 public void UpdatePlayerDeckValues()
 {
     for (int i = 0; i < 4; i++)
     {
         Player    thisPlayer  = GetPlayerSeatedAt(i);
         Deck      playersDeck = thisPlayer.GetPlayersDeck();
         DeckValue bestValue   = DeckHelper.CalculateDeckValues(playersDeck)[3];
         playersDeck.SetDeckValue(bestValue.value);
         playersDeck.SetTrumpToChoose(bestValue.trumpType);
     }
 }