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, 06:11 PM
MuppetBingo MuppetBingo is offline
Member
 
Join Date: Apr 2007
Posts: 31
Default Re: Poker Hand XML

Here's another pass,

* put <antes> block back in
* made the cards-block more explicit, with a <card> per card (as OrcaDK suggested)
* removed playerId and mucked attributes on <cards>, and moved them to <hand>
* made new <deal> block with open-attribute and playerId-attribute, to make showdown <cards> more consistent. The name deal is a bit awkward, but it expresses that one or more cards has been handed to a player or the community, and that the cards are either open or closed.

Version 1.3
<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" currency="USD"&gt;
&lt;!-- only use either tournament or cashgame tag --&gt;
&lt;tournament buyin="10" vig="1" id="56210298"/&gt;
&lt;!-- we need both stakes and max buyin I guess? --&gt;
&lt;cashgame maxbuyin="400" bigblind="2"/&gt;
&lt;/game&gt;
&lt;players&gt;
&lt;!-- active is required, every active player takes part in this hand, ie. pays ante and recieves cards --&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;rounds&gt;
&lt;!-- antes is optional --&gt;
&lt;antes&gt;
&lt;ante playerId="MuppetBingo" amount="2"/&gt;
&lt;ante playerId="KermitIsGreen" amount="2"/&gt;
&lt;ante playerId="Animal" amount="2"/&gt;
&lt;/antes&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;deals&gt;
&lt;!-- open means whether the cards are visible to all. In stud there can be open non-community cards --&gt;
&lt;deal playerId="MuppetBingo" open="false"&gt;
&lt;cards&gt;
&lt;card value="a" suit="c"/&gt;
&lt;card value="a" suit="d"/&gt;
&lt;/cards&gt;
&lt;/deal&gt;
&lt;/deals&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;deals&gt;
&lt;!-- playerId is optional, and if not present it means the cards are community cards --&gt;
&lt;deal open="true"&gt;
&lt;cards&gt;
&lt;card value="7" suit="c"/&gt;
&lt;card value="2" suit="s"/&gt;
&lt;card value="q" suit="h"/&gt;
&lt;/cards&gt;
&lt;/deal&gt;
&lt;/deals&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;deals&gt;
&lt;deal open="true"&gt;
&lt;cards&gt;
&lt;card value="9" suit="h"/&gt;
&lt;/cards&gt;
&lt;/deal&gt;
&lt;/deals&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;deals&gt;
&lt;deal open="true"&gt;
&lt;cards&gt;
&lt;card value="k" suit="c"/&gt;
&lt;/cards&gt;
&lt;/deal&gt;
&lt;/deals&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"&gt;
&lt;cards&gt;
&lt;card value="a" suit="c"/&gt;
&lt;card value="a" suit="d"/&gt;
&lt;/cards&gt;
&lt;/hand&gt;
&lt;hand playerId="KermitIsGreen" mucked="false"&gt;
&lt;cards&gt;
&lt;card value="a" suit="s"/&gt;
&lt;card value="k" suit="s"/&gt;
&lt;/cards&gt;
&lt;/hand&gt;
&lt;hand playerId="Animal" mucked="true"/&gt;
&lt;/hands&gt;
&lt;!-- rake is optional --&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"&gt;
&lt;hand&gt;
&lt;cards&gt;
&lt;card value="a" suit="c"/&gt;
&lt;card value="a" suit="d"/&gt;
&lt;card value="q" suit="h"/&gt;
&lt;card value="k" suit="c"/&gt;
&lt;card value="9" suit="h"/&gt;
&lt;/cards&gt;
&lt;/hand&gt;
&lt;/winner&gt;
&lt;/winners&gt;
&lt;/pot&gt;
&lt;/pots&gt;
&lt;/result&gt;
&lt;/pokerhand&gt;
</pre><hr />
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 10:32 AM.


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