moving bets automatically
Brought to you by:
shaylevi2
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;