Esempio n. 1
0
		public void PayChips( PokerPlayer p, int amount )
		{
			if (amount > p.Chips)
				amount = p.Chips;

			p.Chips -= amount;
			p.BetToPot += amount;
			m_Pot += amount;
		}
Esempio n. 2
0
		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);
		}