Menu

#1 Time Left

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

it would be nice to show the time left before fold on the client side.

on server side
------------------------------
while (com == null && (DateTime.Now - starttime).Seconds < 20)
{
Thread.Sleep(500);
int left = 15 - (DateTime.Now - starttime).Seconds;
p.Writer.WriteLine("TIME$" + p.Position +"$"+ left + "$");
}

on client side
----------------------

else if (command[0] == "TIME")
{
int pos = int.Parse(command[1]);
int secondsLeft = int.Parse(command[2]);
lblTime.Text = secondsLeft.ToString();
players[pos].Action.Show();

}

Discussion


Log in to post a comment.

MongoDB Logo MongoDB