Console client: Print player action.

This commit is contained in:
lotodore
2008-12-23 22:30:02 +00:00
parent 1548598944
commit 660168b8aa
11 changed files with 227 additions and 50 deletions
+21
View File
@@ -56,6 +56,27 @@ namespace pokerth_console
h.Players[h.MyPlayerId].Money);
}
public void MyTurn(Hand.State state)
{
Console.WriteLine("--> {0}: Your turn.",
Log.StateToString(state));
}
public void PlayersTurn(Hand.State state, string player)
{
Console.WriteLine("{0}: {1}'s turn.",
Log.StateToString(state),
player);
}
public void ActionDone(string name, Hand.Action action, uint totalBet, uint money, uint highestSet, uint minimumRaise)
{
Console.WriteLine("{0} acts: {1}. Total bet: {2}. Money left: {3}",
name, Log.ActionToString(action), totalBet, money);
Console.WriteLine("Highest set: {0}. Minimum raise: {1}",
highestSet, minimumRaise);
}
public void Error(string message)
{
Console.WriteLine("Error: " + message);