Loic Dachary wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Andre Allavena wrote:
>> Hi all,
>>
>> I've begun working on an XML format for poker hand histories, based
>> on numerous earlier contributions from the 2+2 forum.
>>
>> Most of the small details have been worked out (I'll post some
>> samples later), but I have a question for the high level
>> architecture. Do people here see a hand history as en entity of its
>> own, or as a sub-element of a tournament or of the table of a cash
>> game?
>>
> Hi,
>
> I would need to details to figure out the larger picture. Could you
> please post the material you already have somewhere on the net ?
Attaching the sample XML I had in mind (taken from a 2+2 post)
I've added a few comments of things that I want to change.
It is an example of type1 below.
>> In other words, is the context of the hand part of the hand, or
>> does it contain the hand? See examples below.
>>
>> Eg 1: <pokerhandxml> <tournament attributes> <pokerhand> stuff
>> </pokerhand> </tournament> </pokerhandxml> <!-- which leaves the
>> possibility of concatenating multiple hands in the same file -->
>>
>> Or Eg2: <pokerhandxml> <pokerhand> <context tournament=attributes>
>> stuff </pokerhand> </pokerhandxml>
>>
>>
>> The same question for cash games: do people prefer having the table
>> data (number of seats, stake, etc.) include the hand itself or be
>> part of the context of the hand ?
>>
>>
> I would rather like references (as in internal xref pointing to
> id="234" than elements nested. But it's maybe a personal preference ;-)
Not certain I get you, here.
--
André
This email and any attachments are confidential, and may be legally privileged
and protected by copyright. If you are not the intended recipient dissemination
or copying of this email is prohibited. If you have received this in error,
please notify the sender by replying by email and then delete the email
completely from your system.
Any views or opinions are solely those of the sender. This communication is
not intended to form a binding contract unless expressly indicated to the
contrary and properly authorised. Any actions taken on the basis of this email
are at the recipient's own risk.
<?xml version="1.0"?>
<pokerxml>
<cashgame>
<pokerhands>
<cashgamecontext site="Party Poker" online="true" currency="USD"/>
<!-- gametype=holdem,omaha,stud, stud8, omaha8, razz -->
<!-- betting-types=nolimit, potlimit or limit -->
<pokerhand id="157430484" timestamp="03 30 19:05:56 2007" gametype="holdem" bettingtype="nolimit" smallblind="2" bigblind="4">
<!-- seat dealer holds the button -->
<table id="Fuzzy Navel" seats="10" dealer="5">
<!-- active is required, every active player takes part in this hand, ie. pays ante and recieves cards -->
<seat id="10" name="gmac84" stack="551.9" active="true" />
<seat id="4" name="rehj" stack="128.65" active="false" />
<seat id="4" name="regi111" stack="328.65" active="true" />
<seat id="5" name="musti455" stack="96.3" active="true" />
<seat id="7" name="koraaf" stack="359.8" active="true" />
<seat id="8" name="MuppetBingo" stack="400" active="true" />
<seat id="9" name="Ls1972" stack="262.97" active="true" />
</table>
<rounds>
<!-- pre deal round, with antes and blinds -->
<round order="0">
<actions>
<!-- amount is optional, default is "0" -->
<!-- possible types=ante, smallblind, bigblind, straddle, check, call, bet, raise or fold. -->
<!-- name is optional, possible values = straddle, smallblind and bigblind -->
<action seat="4" type="dead" amount="4"/>
<action seat="7" type="smallblind" amount="2"/>
<action seat="8" type="bigblind" amount="4"/>
</actions>
</round>
<!-- a round is a deal of cards followed by a sequence of player actions -->
<!-- order the number of rounds, starting from 0 ... 0,1,2,3 in texas, 0,1,2,3,4,5 in 7-stud and razz -->
<round order="1">
<!-- in 7 card stud deal will be a sequence of <deal>-elements, one for each player. In texas-style games it will only contain 1 <deal>-element -->
<deals>
<!-- I don't like the deal cards. Should show that all dealdt cards (opponent cards) even if we don't know them -->
<!-- open means whether the cards are visible to all. In stud there can be open non-community cards -->
<deal seat="4" open="false">
<cards>
<card value="8" suit="s"/>
<card value="9" suit="c"/>
</cards>
</deal>
</deals>
<actions>
<!-- I need to work here, need more amounts to know how much the player had already in pot, by how much the pot is increased, and how much the player pot in the pot at that precise moment -->
<!-- Need to say if the player is allIn -->
<!-- amount is optional, default is "0" -->
<!-- possible types=smallblind, bigblind, straddle, check, call, bet, raise or fold. -->
<!-- name is optional, possible values = straddle, smallblind and bigblind -->
<action seat="9" type="fold"/>
<action seat="10" type="fold"/>
<action seat="4" type="check"/>
<action seat="5" type="call" amount="4"/>
<action seat="7" type="call" amount="2"/>
<action seat="8" type="check"/>
</actions>
</round>
<round order="2">
<deals>
<!-- attribute seat is optional, and if not present it means the cards are community cards -->
<deal open="true">
<cards>
<card value="9" suit="s"/>
<card value="a" suit="c"/>
<card value="a" suit="s"/>
</cards>
</deal>
</deals>
<actions>
<action seat="7" type="check"/>
<action seat="8" type="bet" amount="4"/>
<action seat="4" type="fold"/>
<action seat="5" type="call" amount="4"/>
<action seat="7" type="fold"/>
</actions>
</round>
<round order="3">
<deals>
<deal open="true">
<cards>
<card value="a" suit="h"/>
</cards>
</deal>
</deals>
<actions>
<action seat="8" type="check"/>
<action seat="5" type="bet" amount="4"/>
<action seat="8" type="raise" amount="392"/>
<action seat="5" type="call" amount="84.3"/>
</actions>
</round>
<round order="4">
<deals>
<deal open="true">
<cards>
<card value="q" suit="h"/>
</cards>
</deal>
</deals>
<actions>
<!-- players went all-in, so no action -->
</actions>
</round>
</rounds>
<result>
<hands>
<!-- if a player mucks, leave cards block empty -->
<hand seat="5">
<cards>
<card value="k" suit="d"/>
<card value="9" suit="d"/>
</cards>
</hand>
<hand seat="8">
<cards>
<card value="8" suit="s"/>
<card value="9" suit="c"/>
</cards>
</hand>
</hands>
<!-- we usually only have total rake available, not rake per pot. And on pacific not even that, so rake and jackpot must be optional -->
<pots rake="4" jackpot="0">
<!-- split pot, both have AAA99 -->
<pot>
<collect seat="5" amount="98.3"/>
<collect seat="8" amount="98.3"/>
</pot>
<!-- uncalled bet -->
<pot>
<collect seat="8" amount="303.7"/>
</pot>
</pots>
</result>
<!-- insert optional <summary> element here -->
</pokerhand>
</pokerhands>
</cashgame>
<tournament currency="USD" buyin="10" vig="10" id="123123" name="150K Guaranteed">
<pokerhands>
<!-- <pokerhand> elements, with same attributes as in cash game -->
</pokerhands>
<tournamentresult>
<!--.. payout... I don't have any tournament hand histories -->
</tournamentresult>
</tournament>
</pokerxml>
_______________________________________________
Pokersource-users mailing list
[email protected]
https://mail.gna.org/listinfo/pokersource-users