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
  #161  
Old 08-02-2007, 05:48 PM
mikechops mikechops is offline
Senior Member
 
Join Date: Aug 2005
Posts: 2,168
Default Re: Poker Hand XML

I don't see the harm in having an optional attribute for player reads. I don't think anybody is proposing making this mandatory. All rvg is saying is that he will want to add player reads/notes for some hnads and he would like to get agreement on the best way to do this. My understanding of xml is limited but if a parser is expecting :-

<seat id="7" name="koraaf" stack="359.8" active="true" ante="0"/>

it should not break if it gets:-

<seat id="7" name="koraaf" stack="359.8" active="true" ante="0" read = "85/40/0.1 DONKEY!"/>

The advantage of specifying at this point how reads should be stored, is that anyone writing an application using rvg's reads will also be able to take advantage of anybody else's app that exported reads in the same standard.

Like I said I don't know much about xml and if we would have to include a blank field for players with no read data, then I withdraw everything I just said.


I'm kinda sympathetic to Shoe Lace's memory concerns. I'd like a won/loss summary mainly because I think it is a good check to make sure both the xml convertor and the app reading the xml output have performed correctly. But if we implement it there's no need to have a separate summary section. Can't we just add a field to the player info at the start of the hand.

We'd have:-

<seat id="7" name="koraaf" stack="359.8" active="true" ante="0" won="-10.8"/>

That shouldn't be more than 100 bytes added for a 9 player game.
Reply With Quote
  #162  
Old 08-02-2007, 05:54 PM
mikechops mikechops is offline
Senior Member
 
Join Date: Aug 2005
Posts: 2,168
Default Re: Poker Hand XML

Also I'd prefer a dll over a standalone convertor - perhaps a shell convertor with all the work being done in a .dll?

Someone mentioned C# being an option and .net being pretty good. Does C# require the user to have the .net framework? If so that's a moderately sized negative IMO and I'd prefer a c/c++ solution.
Reply With Quote
  #163  
Old 08-02-2007, 06:05 PM
rvg72 rvg72 is offline
Senior Member
 
Join Date: Jun 2005
Location: Canada
Posts: 2,342
Default Re: Poker Hand XML

[ QUOTE ]
Also I'd prefer a dll over a standalone convertor - perhaps a shell convertor with all the work being done in a .dll?

Someone mentioned C# being an option and .net being pretty good. Does C# require the user to have the .net framework? If so that's a moderately sized negative IMO and I'd prefer a c/c++ solution.

[/ QUOTE ]

a dll is definately what is needed. I offered a stand alone converter for any sites I support just to help out people looking to integrate and needing samples of PokerHand xml based on a particular hand history - maybe it isn't even useful but it is there if anyone wants to use it. This would be provided as a C# app.

c/C++ is probably ideal due to the framework being required for c# like you mentioned. The code to take a hand history and turn it into pokerhand xml is pretty simple - it is figuring out every tiny little deviation and exception to a particular sites hand history output that is a bit of a pain.

rvg
Reply With Quote
  #164  
Old 08-02-2007, 06:09 PM
chipwiz chipwiz is offline
Member
 
Join Date: Aug 2007
Posts: 35
Default Re: Poker Hand XML

A web-based convertor would be nice to. A convertor as a web-service would be really nice.
Reply With Quote
  #165  
Old 08-02-2007, 06:46 PM
TSchauenberg TSchauenberg is offline
Member
 
Join Date: Feb 2007
Posts: 34
Default Re: Poker Hand XML

I suggest not using floats/doubles for amounts and simply use the lowest currency unit. For example in dollars, everything would be expressed in pennies.
Reply With Quote
  #166  
Old 08-02-2007, 06:49 PM
TSchauenberg TSchauenberg is offline
Member
 
Join Date: Feb 2007
Posts: 34
Default Re: Poker Hand XML

In my experience it has been much better to have a Precards round which deals with all the actions before the cards are dealt. In Hold'em games this corresponds to antes, blinds, and posts. In Stud games this corresponds to antes.
Reply With Quote
  #167  
Old 08-02-2007, 10:30 PM
abort abort is offline
Junior Member
 
Join Date: Mar 2007
Posts: 14
Default Re: Poker Hand XML

[ QUOTE ]
I suggest not using floats/doubles for amounts and simply use the lowest currency unit. For example in dollars, everything would be expressed in pennies.

[/ QUOTE ]

This seems very interesting and probably proper suggestion. I understand if application uses float numbers then all over the place amounts like 24.52 often would become 24.51999999 and 11.5 become 11.4999999 . So it is much clearer always to have integers 2452 and 1150 in pennies. And to have it in application this way from the very beginning -- from HH itself, without any overhead conversion.
Reply With Quote
  #168  
Old 08-02-2007, 11:37 PM
abort abort is offline
Junior Member
 
Join Date: Mar 2007
Posts: 14
Default Re: Poker Hand XML

[ QUOTE ]
In my experience it has been much better to have a Precards round which deals with all the actions before the cards are dealt. In Hold'em games this corresponds to antes, blinds, and posts. In Stud games this corresponds to antes.

[/ QUOTE ]

Conceptually this looks clean. Because antes, blinds and posts are the obligatory actions over which players do not have control. ( If/after they choosed to be in the game. )
Reply With Quote
  #169  
Old 08-03-2007, 01:56 AM
MuppetBingo MuppetBingo is offline
Member
 
Join Date: Apr 2007
Posts: 31
Default Re: Poker Hand XML

[ QUOTE ]
Just one thing I would prefer the posting of antes to be an pre-flop action just as the posting of the blinds.

[/ QUOTE ]

I had that in the earlier drafts [img]/images/graemlins/smile.gif[/img], but I actually agree, conceptually antes and blinds seem like the same sort of things.

I like TSchauenberg's idea of a pre-deal round with blinds and antes.
Reply With Quote
  #170  
Old 08-03-2007, 02:02 AM
MuppetBingo MuppetBingo is offline
Member
 
Join Date: Apr 2007
Posts: 31
Default Re: Poker Hand XML

Version 1.5

* Moved antes and blinds into a pre-deal round of their own (as per TSchauenberg's suggestion)

<font class="small">Code:</font><hr /><pre>
&lt;?xml version="1.0"?&gt;
&lt;pokerxml&gt;
&lt;cashgame&gt;
&lt;cashgamecontext site="Pacific Poker" online="true" currency="USD"/&gt;
&lt;pokerhands&gt;
&lt;!-- gametype=holdem,omaha,stud, stud8, omaha8, razz --&gt;
&lt;!-- betting-types=nolimit, potlimit or limit --&gt;
&lt;pokerhand id="157430484" timestamp="03 30 19:05:56 2007" gametype="holdem" bettingtype="nolimit" smallblind="2" bigblind="4"&gt;
&lt;!-- seat dealer holds the button --&gt;
&lt;table id="Fuzzy Navel" seats="10" dealer="5"&gt;
&lt;!-- active is required, every active player takes part in this hand, ie. pays ante and recieves cards --&gt;
&lt;seat id="10" name="gmac84" stack="551.9" active="true" /&gt;
&lt;seat id="4" name="regi111" stack="328.65" active="true" /&gt;
&lt;seat id="5" name="musti455" stack="96.3" active="true" /&gt;
&lt;seat id="7" name="koraaf" stack="359.8" active="true" /&gt;
&lt;seat id="8" name="MuppetBingo" stack="400" active="true" /&gt;
&lt;seat id="9" name="Ls1972" stack="262.97" active="true" /&gt;
&lt;/table&gt;
&lt;rounds&gt;
&lt;!-- pre deal round, with antes and blinds --&gt;
&lt;round order="0"&gt;
&lt;/deals&gt;
&lt;actions&gt;
&lt;!-- amount is optional, default is "0" --&gt;
&lt;!-- possible types=ante, smallblind, bigblind, straddle, check, call, bet, raise or fold. --&gt;
&lt;!-- name is optional, possible values = straddle, smallblind and bigblind --&gt;
&lt;action seat="4" type="post" amount="4"/&gt;
&lt;action seat="7" type="smallblind" amount="2"/&gt;
&lt;action seat="8" type="bigblind" amount="4"/&gt;
&lt;/actions&gt;
&lt;/round&gt;
&lt;!-- a round is a deal of cards followed by a sequence of player actions --&gt;
&lt;!-- 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 --&gt;
&lt;round order="1"&gt;
&lt;!-- in 7 card stud deal will be a sequence of &lt;deal&gt;-elements, one for each player. In texas-style games it will only contain 1 &lt;deal&gt;-element --&gt;
&lt;deals&gt;
&lt;!-- open means whether the cards are visible to all. In stud there can be open non-community cards --&gt;
&lt;deal seat="4" open="false"&gt;
&lt;cards&gt;
&lt;card value="8" suit="s"/&gt;
&lt;card value="9" suit="c"/&gt;
&lt;/cards&gt;
&lt;/deal&gt;
&lt;/deals&gt;
&lt;actions&gt;
&lt;!-- amount is optional, default is "0" --&gt;
&lt;!-- possible types=smallblind, bigblind, straddle, check, call, bet, raise or fold. --&gt;
&lt;!-- name is optional, possible values = straddle, smallblind and bigblind --&gt;
&lt;action seat="9" type="fold"/&gt;
&lt;action seat="10" type="fold"/&gt;
&lt;action seat="4" type="check"/&gt;
&lt;action seat="5" type="call" amount="4"/&gt;
&lt;action seat="7" type="call" amount="2"/&gt;
&lt;action seat="8" type="check"/&gt;
&lt;/actions&gt;
&lt;/round&gt;
&lt;round order="2"&gt;
&lt;deals&gt;
&lt;!-- attribute seat is optional, and if not present it means the cards are community cards --&gt;
&lt;deal open="true"&gt;
&lt;cards&gt;
&lt;card value="9" suit="s"/&gt;
&lt;card value="a" suit="c"/&gt;
&lt;card value="a" suit="s"/&gt;
&lt;/cards&gt;
&lt;/deal&gt;
&lt;/deals&gt;
&lt;actions&gt;
&lt;action seat="7" type="check"/&gt;
&lt;action seat="8" type="bet" amount="4"/&gt;
&lt;action seat="4" type="fold"/&gt;
&lt;action seat="5" type="call" amount="4"/&gt;
&lt;action seat="7" type="fold"/&gt;
&lt;/actions&gt;
&lt;/round&gt;
&lt;round order="3"&gt;
&lt;deals&gt;
&lt;deal open="true"&gt;
&lt;cards&gt;
&lt;card value="a" suit="h"/&gt;
&lt;/cards&gt;
&lt;/deal&gt;
&lt;/deals&gt;
&lt;actions&gt;
&lt;action seat="8" type="check"/&gt;
&lt;action seat="5" type="bet" amount="4"/&gt;
&lt;action seat="8" type="raise" amount="392"/&gt;
&lt;action seat="5" type="call" amount="84.3"/&gt;
&lt;/actions&gt;
&lt;/round&gt;
&lt;round order="4"&gt;
&lt;deals&gt;
&lt;deal open="true"&gt;
&lt;cards&gt;
&lt;card value="q" suit="h"/&gt;
&lt;/cards&gt;
&lt;/deal&gt;
&lt;/deals&gt;
&lt;actions&gt;
&lt;!-- players went all-in, so no action --&gt;
&lt;/actions&gt;
&lt;/round&gt;
&lt;/rounds&gt;
&lt;result&gt;
&lt;hands&gt;
&lt;!-- if a player mucks, leave cards block empty --&gt;
&lt;hand seat="5"&gt;
&lt;cards&gt;
&lt;card value="k" suit="d"/&gt;
&lt;card value="9" suit="d"/&gt;
&lt;/cards&gt;
&lt;/hand&gt;
&lt;hand seat="8"&gt;
&lt;cards&gt;
&lt;card value="8" suit="s"/&gt;
&lt;card value="9" suit="c"/&gt;
&lt;/cards&gt;
&lt;/hand&gt;
&lt;/hands&gt;
&lt;!-- we usually only have total rake available, not rake per pot. And on pacific not even that, so rake and jackpot must be optional --&gt;
&lt;pots rake="4" jackpot="0"&gt;
&lt;!-- split pot, both have AAA99 --&gt;
&lt;pot&gt;
&lt;collect seat="5" amount="98.3"/&gt;
&lt;collect seat="8" amount="98.3"/&gt;
&lt;/pot&gt;
&lt;!-- uncalled bet --&gt;
&lt;pot&gt;
&lt;collect seat="8" amount="303.7"/&gt;
&lt;/pot&gt;
&lt;/pots&gt;
&lt;/result&gt;
&lt;!-- insert optional &lt;summary&gt; element here --&gt;
&lt;/pokerhand&gt;
&lt;/pokerhands&gt;
&lt;/cashgame&gt;
&lt;tournament currency="USD" buyin="10" vig="10" id="123123" name="150K Guaranteed"&gt;
&lt;pokerhands&gt;
&lt;!-- &lt;pokerhand&gt; elements, with same attributes as in cash game --&gt;
&lt;/pokerhands&gt;
&lt;tournamentresult&gt;
&lt;!--.. payout... I don't have any tournament hand histories --&gt;
&lt;/tournamentresult&gt;
&lt;/tournament&gt;
&lt;/pokerxml&gt;
</pre><hr />
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 07:54 AM.


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