Two Plus Two Newer Archives  

Go Back   Two Plus Two Newer Archives > Internet Gambling > Software
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 08-01-2007, 05:21 PM
MuppetBingo MuppetBingo is offline
Member
 
Join Date: Apr 2007
Posts: 31
Default Re: Poker Hand XML

Thanks for your comment, there's 4 ways to handle antes I think:

1) Have an ante-attribute on <rounds>, it would then be implicit that every player that is not sitting out will pay the ante before the first round.

2) We could assume that ante was taken out before we started the hand (as you suggest), but then we should have a "initialPotsize" somewhere to say how much was taken out in ante

3) The way I have done above, with an <antes> block

4) put antes into the first round as forced actions before small and big blinds.

I initially went with 4), but I think that becomes a bit t cumbersome and I think option 1) is probably the best solution, ie. to remove the <antes>-block and add an optional "ante" attribute on <rounds>.

Having ante taken out of the stack sizes before the hand begins is not as good, because I think paying ante is something that happens during a hand of poker, not before.

---
Version 1.2

* removed <antes> block
* added optional ante attribute on rounds
* changed attribute sittingout to active in <players> block. We now don't distinguish between those that were sitting out before we began the hand, and those who chooses not to pay blinds or antes and "active" is a more generic term.

<font class="small">Code:</font><hr /><pre>
&lt;?xml version="1.0"?&gt;
&lt;pokerhand id="11082740019" timestamp="2007-07-31 11:21:43"&gt;
&lt;context&gt;
&lt;location online="true"&gt;
&lt;room name="Absolute Poker" /&gt;
&lt;table id="562102981" name="Denmark Dr." seats="10"/&gt;
&lt;/location&gt;
&lt;!-- betting-types=nolimit, potlimit or limit --&gt;
&lt;game type="texasholdem" format="tournament" bettingtype="nolimit"&gt;
&lt;!-- only use either tournament or cashgame tag --&gt;
&lt;tournament buyin="10" vig="1" id="56210298" currency="USD"/&gt;
&lt;!-- we need both stakes and max buyin I guess? --&gt;
&lt;cashgame maxbuyin="400" bigblind="2" currency=""/&gt;
&lt;/game&gt;
&lt;players&gt;
&lt;player id="MuppetBingo" stack="1500" seat="1" active="true"/&gt;
&lt;player id="KermitIsGreen" stack="1500" seat="4" active="true"/&gt;
&lt;player id="Animal" stack="1500" seat="5" active="true"/&gt;
&lt;/players&gt;
&lt;/context&gt;
&lt;!-- ante is an optional attribute, which is put into the pot by every player that is not sittingout --&gt;
&lt;rounds ante="2"&gt;
&lt;!-- a round is a deal of cards followed by a sequence of player actions --&gt;
&lt;!-- possible round types are "preflop", "flop","turn", "river" --&gt;
&lt;round id="preflop"&gt;
&lt;!-- in 7 card stud deal will be a sequence of &lt;cards&gt; for each player, in texas-style games it will only contain 1 element --&gt;
&lt;deal&gt;
&lt;!-- open means whether the cards are visible to all. In stud there can be open non-community cards --&gt;
&lt;cards playerId="MuppetBingo" open="false" value="Ac Ad"/&gt;
&lt;/deal&gt;
&lt;!-- actions can be &lt;bet&gt; &lt;call&gt; , &lt;fold&gt; --&gt;
&lt;actions&gt;
&lt;!-- amount is optional, --&gt;
&lt;!-- forced is optional and if omitted, will default to "false" --&gt;
&lt;!-- possible types=bet, call, check or fold. --&gt;
&lt;!-- name is optional, possible values = straddle, smallblind and bigblind --&gt;
&lt;action type="bet" playerId="MuppetBingo" forced="true" name="smallblind" amount="10"/&gt;
&lt;action type="bet" playerId="KermitIsGreen" forced="true" name="bigblind" amount="20"/&gt;
&lt;action type="bet" playerId="Animal" forced="false" name="straddle" amount="40"/&gt;
&lt;action type="bet" playerId="MuppetBingo" amount="10"/&gt;
&lt;action type="bet" playerId="KermitIsGreen" amount="30"/&gt;
&lt;action type="call" playerId="Animal" amount="30"/&gt;
&lt;action type="call" playerId="MuppetBIngo" amount="20"/&gt;
&lt;/actions&gt;
&lt;/round&gt;
&lt;round id="flop"&gt;
&lt;deal&gt;
&lt;!-- playerId is optional, and if not present it means the cards are community cards --&gt;
&lt;cards open="true" value="7c 2s Qh"/&gt;
&lt;/deal&gt;
&lt;actions&gt;
&lt;action type="check" playerId="MuppetBingo" /&gt;
&lt;action type="bet" playerId="KermitIsGreen" amount="50"/&gt;
&lt;action type="fold" playerId="Animal"/&gt;
&lt;action type="call" playerId="MuppetBIngo" amount="50"/&gt;
&lt;/actions&gt;
&lt;/round&gt;
&lt;round id="turn"&gt;
&lt;deal&gt;
&lt;cards open="true" value="9h"/&gt;
&lt;/deal&gt;
&lt;actions&gt;
&lt;action type="check" playerId="MuppetBingo"/&gt;
&lt;action type="check" playerId="KermitIsGreen"/&gt;
&lt;/actions&gt;
&lt;/round&gt;
&lt;round id="river"&gt;
&lt;deal&gt;
&lt;cards open="true" value="Kc"/&gt;
&lt;/deal&gt;
&lt;actions&gt;
&lt;action type="check" playerId="MuppetBingo" /&gt;
&lt;action type="check" playerId="KermitIsGreen" /&gt;
&lt;/actions&gt;
&lt;/round&gt;
&lt;/rounds&gt;
&lt;result&gt;
&lt;hands&gt;
&lt;!-- mucked attribute is optional and has default value="false", cards is optional --&gt;
&lt;hand playerId="MuppetBingo" mucked="false" cards="Ac Ad"/&gt;
&lt;hand playerId="KermitIsGreen" mucked="false" cards="As Ks"/&gt;
&lt;hand playerId="Animal" mucked="true"/&gt;
&lt;/hands&gt;
&lt;pots value="278.5" rake="1.5"&gt;
&lt;pot number="1" value="278.5"&gt;
&lt;winners&gt;
&lt;!-- for split pots, this will contain multiple winners --&gt;
&lt;winner playerId="MuppetBingo" amount="278.5" winningHand="Ac Ad Qh Kc 9h"/&gt;
&lt;/winners&gt;
&lt;/pot&gt;
&lt;/pots&gt;
&lt;/result&gt;
&lt;/pokerhand&gt;
</pre><hr />
Reply With Quote
  #2  
Old 08-01-2007, 05:24 PM
MuppetBingo MuppetBingo is offline
Member
 
Join Date: Apr 2007
Posts: 31
Default Re: Poker Hand XML

btw. I agree with someone who wrote that we shouldn't try to nail the spec completely before implementing anything, though we're still in the early stages.

But when we agree on some pokerhand-xml-definition, people should try to implement a couple of converters to see if everything can be captured properly, and then revisit the spec.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 08:13 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.