public void PayChips( PokerPlayer p, int amount ) { if (amount > p.Chips) amount = p.Chips; p.Chips -= amount; p.BetToPot += amount; m_Pot += amount; }
public void GiveTwoCardsTo( PokerPlayer to ) { int i = Utility.Random( m_Set.Count ); to.Hand[0] = m_Set[i]; m_Drawn.Add( m_Set[i] ); m_Set.RemoveAt(i); i = Utility.Random( m_Set.Count ); to.Hand[1] = m_Set[i]; m_Drawn.Add( m_Set[i] ); m_Set.RemoveAt(i); }