Exemplo n.º 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();
 }
Exemplo n.º 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();
 }
Exemplo n.º 3
0
 public CurrentHandState()
 {
     LeftCardsCount = TractorRules.GetCardNumberofEachPlayer(4);
     Id             = Guid.NewGuid().ToString();
 }