Example #1
0
        public void InitTable()
        {
            Cards    = new string[0];
            NbPlayed = 0;

            m_DealerSeat = Seats.SeatOfDealer();

            foreach (var s in GetPlayersWhoNeedsToPutAntes())
            {
                Bank.AddDebt(s.Player, Params.AnteAmount());
            }

            foreach (var s in GetPlayersWhoNeedsToPutSmallBlind())
            {
                s.AddAttribute(SeatAttributeEnum.SmallBlind);
                Bank.AddDebt(s.Player, Params.SmallBlindAmount());
            }

            foreach (var s in GetPlayersWhoNeedsToPutBigBlind())
            {
                s.AddAttribute(SeatAttributeEnum.BigBlind);
                Bank.AddDebt(s.Player, Params.BigBlindAmount());
            }

            NewArrivals.Clear();
        }