From 862502cdc0ab92cf62e9f254777fa0077fbaaa52 Mon Sep 17 00:00:00 2001 From: Matt Turnbull Date: Fri, 5 Dec 2008 02:40:04 +0000 Subject: [PATCH 1/2] Hand class keeping track of pot total / bet amounts Began to turn hand.printHand into the writeHand method but this may not be necessary after all --- pyfpdb/EverleafToFpdb.py | 33 ++++--- pyfpdb/HandHistoryConverter.py | 159 ++++++++++++++++++++++++++++----- 2 files changed, 159 insertions(+), 33 deletions(-) diff --git a/pyfpdb/EverleafToFpdb.py b/pyfpdb/EverleafToFpdb.py index 6d050065..0e03d0c3 100755 --- a/pyfpdb/EverleafToFpdb.py +++ b/pyfpdb/EverleafToFpdb.py @@ -60,7 +60,6 @@ from HandHistoryConverter import * # ** Dealing River ** [ 6c ] # 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" @@ -71,8 +70,9 @@ class Everleaf(HandHistoryConverter): self.rexx.setSplitHandRegex('\n\n\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