Console client: Display cards of player for each hand. Display server messages.

This commit is contained in:
lotodore
2008-12-23 02:15:49 +00:00
parent 6fa4f6585b
commit 28e7accd90
6 changed files with 58 additions and 22 deletions
+5 -4
View File
@@ -29,11 +29,12 @@ namespace pokerth_console
static int Main(string[] args)
{
Settings settings = new Settings();
PokerTHData data = new PokerTHData();
Client client = new Client(settings, data);
PokerTHData data = new PokerTHData("Testuser1");
ConsoleCallback callback = new ConsoleCallback();
Client client = new Client(settings, data, callback);
client.Connect();
client.Start();
Thread.Sleep(5000);
Thread.Sleep(2000);
Console.WriteLine("Open Games:");
Console.Write(data.GameList.ToString());
Console.WriteLine();
@@ -41,7 +42,7 @@ namespace pokerth_console
string input = Console.ReadLine();
uint gameId = Convert.ToUInt32(input);
client.JoinGame(gameId);
Thread.Sleep(5000000);
input = Console.ReadLine();
client.SetTerminateFlag();
client.WaitTermination();
return 0;