public void newGameCards() { if (RemainingCards == null) { RemainingCards = new List <Card>(); } else { RemainingCards.Clear(); } RemainingCards.AddRange(new Card[] { new Card(CardType.Fascist), new Card(CardType.Fascist), new Card(CardType.Liberal), new Card(CardType.Fascist), new Card(CardType.Liberal), new Card(CardType.Fascist), new Card(CardType.Fascist), new Card(CardType.Fascist), new Card(CardType.Liberal), new Card(CardType.Fascist), new Card(CardType.Liberal), new Card(CardType.Liberal), new Card(CardType.Fascist), new Card(CardType.Fascist), new Card(CardType.Fascist), new Card(CardType.Liberal), new Card(CardType.Fascist) }); RemainingCards.Shuffle(); }
private void PrepareGame() { Players.Shuffle(); RemainingCards.Shuffle(); CurrentRound = new GameRound(); foreach (var p in Players) { p.Status = Status.Normal; } CurrentRound.RoundState = RoundState.PickChancellor; CurrentRound.PresidentId = Players[0].UserId; Players[0].Status = Status.President; }