#21
|
|||
|
|||
Re: Poker Hand XML
[ QUOTE ]
adding/inserting metadata and extra information into the hand. [/ QUOTE ] Things like reads, notes (potentially on a single action in the HH or much more of a macro level), player stats etc will need to be included in the metadata portion of this. I'm working on some of this now but I'll hold off for a bit - If we can put this together in a basic form relatively quickly then I'll make the switch during the beta. I would think that Josh would support it as well so for the first time we can all have a standardized site-agnostic hand history format that all apps can be built upon. Pretty exciting stuff. rvg |
#22
|
|||
|
|||
Re: Poker Hand XML
Yes, I am excited about this as well rvg, and LegoPoker Hand History Converter will be on the frontier of this technology and will definitely be supporting it.
Realistically we can have a working version of this within 5-7 days if we all cooperate. The first question we need to answer is: Should XML be used or another format? Myself and a few others have shown strong interest in XML but there have been some valid points about NOT using XML. From this post on, until this question is answered by the community, I am going to assume we like XML and am going to start askign some generic questions. 1. What date format should be used? In XML there are a LOT of options here. This is just an example to get the ball rolling for the other data as well. <font class="small">Code:</font><hr /><pre> <hand date="July 31, 2007 05:16:32"> ... </hand> </pre><hr /> <font class="small">Code:</font><hr /><pre> <hand date="31/07/2007 05:16:32"> ... </hand> </pre><hr /> <font class="small">Code:</font><hr /><pre> <hand> <date>July 31, 2007 05:16:32</date> ... </hand> </pre><hr /> <font class="small">Code:</font><hr /><pre> <hand> <date>July 31, 2007</date> <time>05:16:32</time> ... </hand> </pre><hr /> <font class="small">Code:</font><hr /><pre> <hand> <date> <month>7</month> <day>31</day> <year>2007</year> </date> <time>05:16:32</time> ... </hand> </pre><hr /> This last one is my favorite. But just because its my favorite doesn't mean it is best. What are YOUR thoughts? We need everyones opinion here to formulate the best format. |
#23
|
|||
|
|||
Re: Poker Hand XML
My 2c:-
Human readability isn't that important. The site format is usually pretty readable as is. I like Phil's comments on xml and I'd be inclined to go with xml based on his guidelines. i.e short tags and keeping actions sequential. So who's going to write the first converter then? If whoever does hasn't seen the I-Poker format, I'd say have a look at it. It could definitely be improved upon but it would probably give you an idea of how to approach the job. |
#24
|
|||
|
|||
Re: Poker Hand XML
#2 has to be a no go as it poses problems between Americans and the rest of the world.
Also, I think the timezone should at least be an optional attribute. |
#25
|
|||
|
|||
Re: Poker Hand XML
[ QUOTE ]
- should it only support flop/turn/river games (holdem, omaha) or others too (stud, 5 card draw?) All is desirable, but let's get something working first. I think previous projects have fallen flat because of the difficulty of designing a standard. I'm a great believer in starting with something and then extending/rewriting it. [/ QUOTE ] I think the easiest way to do this is to create a schema that defines all of the common types (players, actions, cards, etc.) and then use the "types" schema to create "game" schemas for each variation of poker. IMHO this is the best way to allow for simple flexibility and still have good validation and modularization. |
#26
|
|||
|
|||
Re: Poker Hand XML
Here's an example of an I-poker hand. Sorry the tabbing didn't come over. If we want to discuss what we want, I thought it might be helpful to see something already implemented.
- <session sessioncode="225295281"> - <general> <nickname>lolourgay</nickname> <gametype>Holdem NL 1/2</gametype> <tablename>Sand Pit (6 max)</tablename> <bets>$678.7</bets> <wins>$790.78</wins> <duration>01:43</duration> <gamecount>147</gamecount> <chipsin>200</chipsin> <chipsout>312.08</chipsout> <startdate>2007-01-02 10:44:32</startdate> <ipoints>505.25</ipoints> </general> - <game gamecode="468785388"> - <general> <startdate>2007-01-02 10:47:42</startdate> - <players> <player seat="1" name="tribaciNP" chips="$138.7" dealer="0" win="$0" bet="$1" /> <player seat="3" name="lolourgay" chips="$200" dealer="0" win="$0" bet="$2" /> <player seat="5" name="piedeljere" chips="$181.98" dealer="0" win="$8.65" bet="$4" /> <player seat="6" name="Agalont" chips="$399.08" dealer="0" win="$0" bet="$2" /> <player seat="8" name="didier68" chips="$234.25" dealer="0" win="$0" bet="$0" /> <player seat="10" name="Tjocksomfan" chips="$168" dealer="1" win="$0" bet="$0" /> </players> </general> - <round no="0"> <action no="1" player="tribaciNP" type="1" sum="$1" /> <action no="2" player="lolourgay" type="2" sum="$2" /> </round> - <round no="1"> <cards type="Pocket" player="tribaciNP">x x</cards> <cards type="Pocket" player="lolourgay">C2 C8</cards> <cards type="Pocket" player="piedeljere">x x</cards> <cards type="Pocket" player="Agalont">x x</cards> <cards type="Pocket" player="didier68">x x</cards> <cards type="Pocket" player="Tjocksomfan">x x</cards> <action no="3" player="piedeljere" type="3" sum="$2" /> <action no="4" player="Agalont" type="3" sum="$2" /> <action no="5" player="didier68" type="0" sum="$0" /> <action no="6" player="Tjocksomfan" type="0" sum="$0" /> <action no="7" player="tribaciNP" type="0" sum="$0" /> <action no="8" player="lolourgay" type="4" sum="$0" /> </round> - <round no="2"> <cards type="Flop">DA S5 CJ</cards> <action no="9" player="lolourgay" type="4" sum="$0" /> <action no="10" player="piedeljere" type="5" sum="$2" /> <action no="11" player="Agalont" type="0" sum="$0" /> <action no="12" player="lolourgay" type="0" sum="$0" /> </round> </game> |
#27
|
|||
|
|||
Re: Poker Hand XML
[ QUOTE ]
1. What date format should be used? [/ QUOTE ] Should this not be the format defined in the XML schema standard? Whether or not it is an attribute is a valid question though. http://www.w3schools.com/schema/schema_dtypes_date.asp |
#28
|
|||
|
|||
Re: Poker Hand XML
Mike (and others who might be pasting xml code in this thread later on),
put [ code ] [ /code ] (without the spaces) around what you are pasting and it should preserve tab structure |
#29
|
|||
|
|||
Re: Poker Hand XML
[ QUOTE ]
[ QUOTE ] 1. What date format should be used? [/ QUOTE ] Should this not be the format defined in the XML schema standard? Whether or not it is an attribute is a valid question though. http://www.w3schools.com/schema/schema_dtypes_date.asp [/ QUOTE ] Excellent find [img]/images/graemlins/grin.gif[/img] |
#30
|
|||
|
|||
Re: Poker Hand XML
I'd love time zones to be implemented. I play on sites with local time in the hand histories as well as sites with UTC so some hands are in the wrong order in PT. If the XML would include time zones new tools could adjust for that when importing.
|
|
|