示例#1
0
 public Game(GameId id, RoundContext roundContext, Deck deck, Teams teams, User owner, DateTime creationDate) : base(id)
 {
     RoundContext = roundContext;
     Deck         = deck;
     Teams        = teams;
     Owner        = owner;
     CreationDate = creationDate;
 }
示例#2
0
        private RoundContext GetRoundContext(int totalRounds, int currentRound)
        {
            var roundContext = new RoundContext(totalRounds);

            while (roundContext.CurrentRoundNumber != currentRound)
            {
                roundContext.MoveToNextRound();
            }
            return(roundContext);
        }