ChrisBronkhorst / opentestbed

Automatically exported from code.google.com/p/opentestbed
0 stars 0 forks source link

Create a Hand History Exporter #4

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
After each Action or Hand we need to write/append a Hand-History-File to be
imported by PokerTracker or HoldemManager.

Maybe its best to make the Dealer-class Observable so that the Dealer is
not directly linked to the Hand-History export.
This would also make it easier for a GUI which might want to observe the
Dealer.

Original issue reported on code.google.com by bluegasp...@gmail.com on 16 Mar 2010 at 11:07

GoogleCodeExporter commented 9 years ago
This can be implemented as a GameObserver (in the Meerkat API). Just have the 
dealer
get a list of observers and after every action/dealing of cards it can tell the
observers.

It would tell all the Players (a subinterface of GameObserver) of the actions 
(but
only the cards at showdown of course).

Original comment by schatzbe...@gmail.com on 16 Mar 2010 at 11:23

GoogleCodeExporter commented 9 years ago
I'll be starting on this one, writing an implementation for GameObserver.
HoleCards will be missing for the first version, we can later create an 
additional 
interface 'HoleCardsGameObserver' which gets told all hole cards so they can 
appear
in the logs as well.

As format I'm going for full-tilt now, as its not too complicated and I have 
enough
examples.

Original comment by bluegasp...@gmail.com on 18 Mar 2010 at 1:24

GoogleCodeExporter commented 9 years ago
if you need examples of other sites - there's some guy who released lots of
hands(with obfuscated player names - see attached example of AbsolutePoker)

i already have implemented (for my tracker module) the opposite task: parsing 
the
text and creating the game model. 

keep in mind that you'll have at least 2 observers for your game - the 
persistence
module(save into db or export in some text format) and/or GUI (aka "observed" 
mode)

Original comment by absolut...@gmail.com on 18 Mar 2010 at 8:12

GoogleCodeExporter commented 9 years ago
the example hand history file - there's 7gb more where it came from :)

Original comment by absolut...@gmail.com on 18 Mar 2010 at 8:30

Attachments:

GoogleCodeExporter commented 9 years ago
finished this for now - have to review results when the real events to 
GameObservers
are sent

Original comment by bluegasp...@gmail.com on 21 Mar 2010 at 5:16