Пример #1
0
 public Game(double buyin, int numberOfPlayers, double numberOfHours)
 {
     var blindhelper = new BlindsHelper();
     TimeperblindMS = blindhelper.GetBlindTimeInMS(numberOfHours, numberOfPlayers);
     //var timeinMin = TimeperblindMS / 1000 / 60;
     var prizePools = new Priezepools();
     PrizePool = prizePools.Prizeppols.FirstOrDefault(p => p.minPlayers <= numberOfPlayers && p.maxPlayers >= numberOfPlayers);
     if (PrizePool != null)
     {
         PrizePool.SUM = buyin * numberOfPlayers;
         AvarageStack = PrizePool.SUM / numberOfPlayers;
         Blinds = BlindsHelper.Blinds.Take(BlindsHelper.maxBBindex).ToArray();
         CurrentBlind = Blinds[0];
     }
 }
Пример #2
0
        public Game(double buyin, int numberOfPlayers, double numberOfHours)
        {
            var blindhelper = new BlindsHelper();

            TimeperblindMS = blindhelper.GetBlindTimeInMS(numberOfHours, numberOfPlayers);
            //var timeinMin = TimeperblindMS / 1000 / 60;
            var prizePools = new Priezepools();

            PrizePool = prizePools.Prizeppols.FirstOrDefault(p => p.minPlayers <= numberOfPlayers && p.maxPlayers >= numberOfPlayers);
            if (PrizePool != null)
            {
                PrizePool.SUM = buyin * numberOfPlayers;
                AvarageStack  = PrizePool.SUM / numberOfPlayers;
                Blinds        = BlindsHelper.Blinds.Take(BlindsHelper.maxBBindex).ToArray();
                CurrentBlind  = Blinds[0];
            }
        }