|
#1
|
|||
|
|||
Re: Poker Hand XML
I forgot a few attributes up top, but I can't edit the post.
- "table" can go in between 'site' and 'number' up top to include the table name. - Blinds could be separated into 2 attributes ("sb" and "bb" to eliminate parsing). - "mode" can go after the 'game' attribute. This will handle NL/Limit/PL, etc.. Play money shouldn't be an optional type. The currency should be null instead. A tournament type would ignore the currency attribute or maybe use "chips"/"c". Then have an "extras" attribute up top to cover weird things like jackpot tables. So... it would look like this in the end: <font class="small">Code:</font><hr /><pre> <hand date="00/00/0000 00:00:00pm" site="Poker Stars" table="Blah" number="#0000000000" currency="$" type="Cash" seats="6" game="Texas Holdem" mode="No Limit" sb="5" bb="10" extras=""> <players> <seat position="1" name="Jack" stack="1000"> <seat position="2" name="Jill" stack="1000"> <seat position="3" name="Jim" stack="1000" holecards="Kd Qd"> <seat position="4" name="Jane" stack="1000"> <seat position="5" name="Joe" stack="1000"> <seat position="6" name="Julie" stack="1000"> </players> <action> <street order="1"> <position="1" action="Fold" value="0"> <position="2" action="Fold" value="0"> <position="3" action="Raise" value="35"> <position="4" action="Call" value="35"> <position="5" action="Fold" value="5"> <position="6" action="Fold" value="10"> </street> <street order="2" board="3d Kh Td"> <position="3" action="Bet" value="60"> <position="4" action="Call" value="60"> </street> <street order="3" board="3d Kh Td Jc"> <position="3" action="Bet" value="205"> <position="4" action="Call" value="205"> </street> <street order="4" board="3d Kh Td Jc 2d"> <position="3" action="Bet" value="525"> <position="4" action="Call" value="525"> </street> <showdown> <position="3" hand="[Kd Qd] Td 3d 2d (King-high Flush)" result="win"> <position="4" hand="[3c 3h] 3d Kh Jc (Three of a kind)" result="muck"> <award position="3" value="1660" rake="5"> </showdown> </action> </hand> </pre><hr /> |
#2
|
|||
|
|||
Re: Poker Hand XML
i'm in the middle of coding a poker tool myself (working on it since over a year) and asked myself similar questions about the future of HH parsing.
i think inventing our own xml standard won't help that much, because this is something the pokersites should be doing... personally, i would be MUCH MORE interested in discussing a good poker database format. given that database format, a standard parser (dll) would be the way to go imho. this would tremendously cut down time both for the coders and the users. |
Thread Tools | |
Display Modes | |
|
|