Thread: Poker Hand XML
View Single Post
  #208  
Old 08-03-2007, 07:02 PM
mikechops mikechops is offline
Senior Member
 
Join Date: Aug 2005
Posts: 2,168
Default Re: Poker Hand XML

[ QUOTE ]
[ QUOTE ]
Can you extend your example for player A bets $50, player B raises to $150, player A raises to $500? I just want to be clear what happens when players make multiple actions in these cases and commit money more than once.

[/ QUOTE ]

<action type="bet" amount="50" playerid="playerA" />
<action type="raise" amount="150" playerid="playerB" />
<action type="raise" amount="500" playerid="playerA" />

In otherwords, a raise amount is always the total amount a player is raising to. That way we dont have to keep adding up the amounts each player has in the pot (although we have to do this anyway for some things).

[/ QUOTE ]

I don't really have a position on the "raise to $x" or "raises putting in an additional $x" debate. However if we are going with "raise to", I think we should be making calls, "call to"

So the action would be:-

<action type="bet" amount="50" playerid="playerA" />
<action type="raise" amount="150" playerid="playerB" />
<action type="raise" amount="500" playerid="playerA" />
<action type="call" amount="500" playerid="playerB" />

It just seems more logical to me to have the size of the bet/call/raise always be either the additional chips for that action, or the total amount of chips a player has put in so far this round. Mixing them up for different actions doesn't make sense - to me at least!
Reply With Quote