Menu

#3 moving bets automatically

open
nobody
None
5
2010-03-06
2010-03-06
No

in case 1 player is left with money, and all other players are all in, consider moving the game automatically. no need for him to check/raise

public void PlayerMove(Client p)
{

int countHasMoney =players.Where(dd=>dd.Money>0).Count();
if (p.Money > 0 )
{

Thread.Sleep(2000);

if (countHasMoney == 1 && p.InRoundMoney >= bet)
{
count--;
com = null;
playerturn = playerturn.Next;
return;
}
p.Writer.WriteLine("Waiting$" + bet + "$" + p.InRoundMoney + "$");
Inform("Playing$" + p.Position + "$");
DateTime starttime = DateTime.Now;

Discussion


Log in to post a comment.