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 07-30-2007, 11:15 PM
Tickner Tickner is offline
Senior Member
 
Join Date: Mar 2006
Posts: 3,554
Default Poker Hand XML

Anyone following the Hold'em Manager thread will understand the need for this thread. It's plain and simple. Poker Hands need an "official" XML representation. I am willing to take part in its construction and I will need your help with it. We should use this thread to share ideas and etc, until we can find a suitable XML representation of any poker hand (should work for online and offline hands - universal is key here).

I really need to go to bed but I look forward to getting spending a good chunk of time tomorrow researching XML standards, schemas, and practices. Hopefully some of you will join me in this.

With the influx of poker applications as of late - this is becoming a necessity.
Reply With Quote
  #2  
Old 07-31-2007, 12:40 AM
rvg72 rvg72 is offline
Senior Member
 
Join Date: Jun 2005
Location: Canada
Posts: 2,342
Default Re: Poker Hand XML

As long as this is finalized in a reasonable amount of time then HM will use whatever format is agreed upon. Hopefully this thread has legs because this really needs to happen.

rvg
Reply With Quote
  #3  
Old 07-31-2007, 01:24 AM
mikechops mikechops is offline
Senior Member
 
Join Date: Aug 2005
Posts: 2,168
Default Re: Poker Hand XML

I-Poker's looks solid. Why not settle on that since it's one less site that would need to be converted from?
Reply With Quote
  #4  
Old 07-31-2007, 01:34 AM
rvg72 rvg72 is offline
Senior Member
 
Join Date: Jun 2005
Location: Canada
Posts: 2,342
Default Re: Poker Hand XML

[ QUOTE ]
I-Poker's looks solid. Why not settle on that since it's one less site that would need to be converted from?

[/ QUOTE ]

I'm not a big fan of their format...

I don't like how they use action ID's instead of the actual play (ie Type="1" instead of saying "posted small blind") and I also hate how they post action out of order and use an Action Number instead.

for example:

<action no="2" player="abc" type="2" sum="$0.50"/><action no="3" player="def" type="2" sum="$0.50"/><action no="1" player="ghi" type="1" sum="$0.25"/>

This really means:

ghi posted small blind of 0.25
abc posted big blind of 0.50
def posted big blind of 0.50

rvg
Reply With Quote
  #5  
Old 07-31-2007, 01:44 AM
mikechops mikechops is offline
Senior Member
 
Join Date: Aug 2005
Posts: 2,168
Default Re: Poker Hand XML

Fair points, but if you want a universal format that's easy for humans to read, then maybe xml isn't the answer?
Reply With Quote
  #6  
Old 07-31-2007, 02:11 AM
A.Nironen A.Nironen is offline
Senior Member
 
Join Date: Oct 2006
Posts: 118
Default Re: Poker Hand XML

[ QUOTE ]
Fair points, but if you want a universal format that's easy for humans to read, then maybe xml isn't the answer?

[/ QUOTE ]

What about PokerStars? IMO it's human readable quite well.

-Andrzej
Reply With Quote
  #7  
Old 07-31-2007, 04:52 AM
pokergrader pokergrader is offline
Senior Member
 
Join Date: Apr 2005
Posts: 3,792
Default Re: Poker Hand XML

[ QUOTE ]
[ QUOTE ]
Fair points, but if you want a universal format that's easy for humans to read, then maybe xml isn't the answer?

[/ QUOTE ]

What about PokerStars? IMO it's human readable quite well.

-Andrzej

[/ QUOTE ]

I think we should pick a format where each action states exactly how much money is put into the pot for that action, a la Party (other than the all-in move).

For example, this is stars:

[ QUOTE ]

Penaflow: posts small blind $0.50
Mr Herpes: posts big blind $1
*** HOLE CARDS ***
Dealt to pokergrader [Ac Ad]
RolexRounder: calls $1
pokergrader: raises $3 to $4


[/ QUOTE ]

The problem is that the message pokergrader: raises $3 to $4 will be the exact same whether I am UTG (and just put in $4), or in the BB (and just put in $3).

I would rather the format be:

[ QUOTE ]

Penaflow: posts small blind [$0.50]
Mr Herpes: posts big blind [$1]
*** HOLE CARDS ***
Dealt to pokergrader [Ac Ad]
RolexRounder: calls [$1]
pokergrader: raises to $4 [$4]


[/ QUOTE ]

The simpler the hand history is the easier it would be to make hand converters and whatnot without a lot of unnecessary code to keep track of player contributions (problem with stars) and betting levels as the hand goes on (which is the problem with party).

Both of these are solved by my suggestion.

For example, if I was raising out of the BB, it would look like:
pokergrader: raises to $4 [$3]

And believe me, I've put a great deal of thought into this problem, but I was just waiting for somebody who actually was making money from their poker applications to do it.
Reply With Quote
  #8  
Old 07-31-2007, 05:42 AM
JavaNut JavaNut is offline
Senior Member
 
Join Date: May 2007
Location: Permanent downswing
Posts: 471
Default Re: Poker Hand XML

[ QUOTE ]

<action no="2" player="abc" type="2" sum="$0.50"/><action no="3" player="def" type="2" sum="$0.50"/><action no="1" player="ghi" type="1" sum="$0.25"/>

This really means:

ghi posted small blind of 0.25
abc posted big blind of 0.50
def posted big blind of 0.50


[/ QUOTE ]

One thing that you have to realise concerning xml is that you should never ever make any xml standard that is positional depending.

If you have an action section like this:

<hand>
starting stack info, handnumber etc.....
<preflopaction>
<blind>
<player1 kind=sb>$0.10</player1>
<player2 kind=bb>$0.20</player2>
<player3 kind=lb>$0.20</player3>

The sequence of the above <player1>, <player2> and <player3> are not required to be in exactly that order, if they are it is not xml. No order is to be infered by the sequence, it has to be inferred by the attributes, in this case the kind attribute where sb is small blind, lb is live blind.
Reply With Quote
  #9  
Old 07-31-2007, 10:38 AM
advis0r advis0r is offline
Member
 
Join Date: Apr 2007
Location: Southern Germany
Posts: 99
Default Re: Poker Hand XML

some questions that need to be answered:
- should it be easily readable by humans?
- does filesize matter? (bloated xml tags?)
- do you want to automatically validate if a HH is in a correct format? (xml schema)
- do you want to be able to create other forms of representation automatically i.e. BB Code, back to PokerSites-individual Formats (XSLT)
- should it only support flop/turn/river games (holdem, omaha) or others too (stud, 5 card draw?)
- should it allow references to earlier defined info? i.e. one currency tag ($,€,t) on top and only numbers later or seat info earlier with Playernames, and later only use seatnumbers to identify players?
- how do you deal with different information, order, detail in Pokersites own formats?
- regarding the creation of real-life-hhs: how much typing do you have to do?
- does tag order in XML matter to you? (what JavaNut mentioned)
Reply With Quote
  #10  
Old 07-31-2007, 11:00 AM
mikechops mikechops is offline
Senior Member
 
Join Date: Aug 2005
Posts: 2,168
Default Re: Poker Hand XML

I'd agree with most of what has been said about the actual format, but I don't think it matters that much. It's more important that a range of applications support it. I'll adapt the Realtime HUD to support anything sensible that somebody implements. If we get another couple of applications then we have standard implemented.

I'd need a program that translates a site format file to the universal format file. It would be helpful if I could pass the program a start point in the file and get back a pointer to the last processed line - that way it wouldn't have to keep reprocessing hands that had already been converted.
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 01:01 AM.


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