예제 #1
0
 public CurrentHandState(GameState gameState)
 {
     PlayerHoldingCards = new Dictionary <string, CurrentPoker>();
     foreach (PlayerEntity player in gameState.Players)
     {
         PlayerHoldingCards[player.PlayerId] = new CurrentPoker();
     }
     LeftCardsCount = TractorRules.GetCardNumberofEachPlayer(gameState.Players.Count);
     Id             = Guid.NewGuid().ToString();
 }
예제 #2
0
 public CurrentHandState(GameState gameState)
 {
     LastTrumpStates    = new List <TrumpState>();
     ScoreCards         = new List <int>();
     PlayerHoldingCards = new Dictionary <string, CurrentPoker>();
     foreach (PlayerEntity player in gameState.Players)
     {
         if (player == null)
         {
             continue;
         }
         PlayerHoldingCards[player.PlayerId] = new CurrentPoker();
     }
     LeftCardsCount = TractorRules.GetCardNumberofEachPlayer(gameState.Players.Count);
     Id             = Guid.NewGuid().ToString();
 }
예제 #3
0
 public CurrentHandState()
 {
     LeftCardsCount = TractorRules.GetCardNumberofEachPlayer(4);
     Id             = Guid.NewGuid().ToString();
 }