#!/usr/bin/env python # Copyright 2008, Carl Gherardi # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ######################################################################## import sys import Configuration from HandHistoryConverter import * # Everleaf HH format # Everleaf Gaming Game #55208539 # ***** Hand history for game #55208539 ***** # Blinds $0.50/$1 NL Hold'em - 2008/09/01 - 13:35:01 # Table Speed Kuala # Seat 1 is the button # Total number of players: 9 # Seat 1: BadBeatBox ( $ 98.97 USD ) # Seat 3: EricBlade ( $ 73.96 USD ) # Seat 4: randy888 ( $ 196.50 USD ) # Seat 5: BaronSengir ( $ 182.80 USD ) # Seat 6: dogge ( $ 186.06 USD ) # Seat 7: wings ( $ 50 USD ) # Seat 8: schoffeltje ( $ 282.05 USD ) # Seat 9: harrydebeng ( $ 109.45 USD ) # Seat 10: smaragdar ( $ 96.50 USD ) # EricBlade: posts small blind [$ 0.50 USD] # randy888: posts big blind [$ 1 USD] # wings: posts big blind [$ 1 USD] # ** Dealing down cards ** # Dealt to EricBlade [ qc, 3c ] # BaronSengir folds # dogge folds # wings raises [$ 2.50 USD] # schoffeltje folds # harrydebeng calls [$ 3.50 USD] # smaragdar raises [$ 15.50 USD] # BadBeatBox folds # EricBlade folds # randy888 folds # wings calls [$ 12 USD] # harrydebeng folds # ** Dealing Flop ** [ qs, 3d, 8h ] # wings: bets [$ 34.50 USD] # smaragdar calls [$ 34.50 USD] # ** Dealing Turn ** [ 2d ] # ** Dealing River ** [ 6c ] # dogge shows [ 9h, 9c ]a pair of nines # spicybum shows [ 5d, 6d ]a straight, eight high # harrydebeng does not show cards # smaragdar wins $ 102 USD from main pot with a pair of aces [ ad, ah, qs, 8h, 6c ] class Everleaf(HandHistoryConverter): def __init__(self, config, file): print "Initialising Everleaf converter class" HandHistoryConverter.__init__(self, config, file, sitename="Everleaf") # Call super class init. self.sitename = "Everleaf" self.setFileType("text") self.rexx.setGameInfoRegex('.*Blinds \$?(?P[.0-9]+)/\$?(?P[.0-9]+)') self.rexx.setSplitHandRegex('\n\n+') self.rexx.setHandInfoRegex('.*#(?P[0-9]+)\n.*\nBlinds \$?(?P[.0-9]+)/\$?(?P[.0-9]+) (?P.*) - (?P[0-9]+)/(?P[0-9]+)/(?P[0-9]+) - (?P
[0-9]+):(?P[0-9]+):(?P[0-9]+)\nTable (?P[ a-zA-Z]+)\nSeat (?P