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