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
  #21  
Old 07-31-2007, 12:23 PM
rvg72 rvg72 is offline
Senior Member
 
Join Date: Jun 2005
Location: Canada
Posts: 2,342
Default 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
Reply With Quote
  #22  
Old 07-31-2007, 12:35 PM
Tickner Tickner is offline
Senior Member
 
Join Date: Mar 2006
Posts: 3,554
Default 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>
&lt;hand date="July 31, 2007 05:16:32"&gt;
...
&lt;/hand&gt;
</pre><hr />

<font class="small">Code:</font><hr /><pre>
&lt;hand date="31/07/2007 05:16:32"&gt;
...
&lt;/hand&gt;
</pre><hr />

<font class="small">Code:</font><hr /><pre>
&lt;hand&gt;
&lt;date&gt;July 31, 2007 05:16:32&lt;/date&gt;
...
&lt;/hand&gt;
</pre><hr />


<font class="small">Code:</font><hr /><pre>
&lt;hand&gt;
&lt;date&gt;July 31, 2007&lt;/date&gt;
&lt;time&gt;05:16:32&lt;/time&gt;
...
&lt;/hand&gt;
</pre><hr />


<font class="small">Code:</font><hr /><pre>
&lt;hand&gt;
&lt;date&gt;
&lt;month&gt;7&lt;/month&gt;
&lt;day&gt;31&lt;/day&gt;
&lt;year&gt;2007&lt;/year&gt;
&lt;/date&gt;
&lt;time&gt;05:16:32&lt;/time&gt;
...
&lt;/hand&gt;
</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.
Reply With Quote
  #23  
Old 07-31-2007, 12:40 PM
mikechops mikechops is offline
Senior Member
 
Join Date: Aug 2005
Posts: 2,168
Default 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.
Reply With Quote
  #24  
Old 07-31-2007, 12:46 PM
jaminbird jaminbird is offline
Senior Member
 
Join Date: Jan 2005
Location: The other side of the tubes
Posts: 954
Default 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.
Reply With Quote
  #25  
Old 07-31-2007, 12:47 PM
bengele bengele is offline
Senior Member
 
Join Date: Dec 2004
Posts: 200
Default 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.
Reply With Quote
  #26  
Old 07-31-2007, 12:48 PM
mikechops mikechops is offline
Senior Member
 
Join Date: Aug 2005
Posts: 2,168
Default 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.

- &lt;session sessioncode="225295281"&gt;
- &lt;general&gt;
&lt;nickname&gt;lolourgay&lt;/nickname&gt;
&lt;gametype&gt;Holdem NL 1/2&lt;/gametype&gt;
&lt;tablename&gt;Sand Pit (6 max)&lt;/tablename&gt;
&lt;bets&gt;$678.7&lt;/bets&gt;
&lt;wins&gt;$790.78&lt;/wins&gt;
&lt;duration&gt;01:43&lt;/duration&gt;
&lt;gamecount&gt;147&lt;/gamecount&gt;
&lt;chipsin&gt;200&lt;/chipsin&gt;
&lt;chipsout&gt;312.08&lt;/chipsout&gt;
&lt;startdate&gt;2007-01-02 10:44:32&lt;/startdate&gt;
&lt;ipoints&gt;505.25&lt;/ipoints&gt;
&lt;/general&gt;
- &lt;game gamecode="468785388"&gt;
- &lt;general&gt;
&lt;startdate&gt;2007-01-02 10:47:42&lt;/startdate&gt;
- &lt;players&gt;
&lt;player seat="1" name="tribaciNP" chips="$138.7" dealer="0" win="$0" bet="$1" /&gt;
&lt;player seat="3" name="lolourgay" chips="$200" dealer="0" win="$0" bet="$2" /&gt;
&lt;player seat="5" name="piedeljere" chips="$181.98" dealer="0" win="$8.65" bet="$4" /&gt;
&lt;player seat="6" name="Agalont" chips="$399.08" dealer="0" win="$0" bet="$2" /&gt;
&lt;player seat="8" name="didier68" chips="$234.25" dealer="0" win="$0" bet="$0" /&gt;
&lt;player seat="10" name="Tjocksomfan" chips="$168" dealer="1" win="$0" bet="$0" /&gt;
&lt;/players&gt;
&lt;/general&gt;
- &lt;round no="0"&gt;
&lt;action no="1" player="tribaciNP" type="1" sum="$1" /&gt;
&lt;action no="2" player="lolourgay" type="2" sum="$2" /&gt;
&lt;/round&gt;
- &lt;round no="1"&gt;
&lt;cards type="Pocket" player="tribaciNP"&gt;x x&lt;/cards&gt;
&lt;cards type="Pocket" player="lolourgay"&gt;C2 C8&lt;/cards&gt;
&lt;cards type="Pocket" player="piedeljere"&gt;x x&lt;/cards&gt;
&lt;cards type="Pocket" player="Agalont"&gt;x x&lt;/cards&gt;
&lt;cards type="Pocket" player="didier68"&gt;x x&lt;/cards&gt;
&lt;cards type="Pocket" player="Tjocksomfan"&gt;x x&lt;/cards&gt;
&lt;action no="3" player="piedeljere" type="3" sum="$2" /&gt;
&lt;action no="4" player="Agalont" type="3" sum="$2" /&gt;
&lt;action no="5" player="didier68" type="0" sum="$0" /&gt;
&lt;action no="6" player="Tjocksomfan" type="0" sum="$0" /&gt;
&lt;action no="7" player="tribaciNP" type="0" sum="$0" /&gt;
&lt;action no="8" player="lolourgay" type="4" sum="$0" /&gt;
&lt;/round&gt;
- &lt;round no="2"&gt;
&lt;cards type="Flop"&gt;DA S5 CJ&lt;/cards&gt;
&lt;action no="9" player="lolourgay" type="4" sum="$0" /&gt;
&lt;action no="10" player="piedeljere" type="5" sum="$2" /&gt;
&lt;action no="11" player="Agalont" type="0" sum="$0" /&gt;
&lt;action no="12" player="lolourgay" type="0" sum="$0" /&gt;
&lt;/round&gt;
&lt;/game&gt;
Reply With Quote
  #27  
Old 07-31-2007, 12:53 PM
bengele bengele is offline
Senior Member
 
Join Date: Dec 2004
Posts: 200
Default 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
Reply With Quote
  #28  
Old 07-31-2007, 12:55 PM
jaminbird jaminbird is offline
Senior Member
 
Join Date: Jan 2005
Location: The other side of the tubes
Posts: 954
Default 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
Reply With Quote
  #29  
Old 07-31-2007, 01:07 PM
Tickner Tickner is offline
Senior Member
 
Join Date: Mar 2006
Posts: 3,554
Default 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]
Reply With Quote
  #30  
Old 07-31-2007, 01:29 PM
Triggerle Triggerle is offline
Senior Member
 
Join Date: Oct 2005
Location: What\'s a matter with you, rock?
Posts: 1,439
Default 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.
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 12:59 AM.


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