#!/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 from HandHistoryConverter import * # PokerStars HH Format #PokerStars Game #20461877044: Hold'em No Limit ($1/$2) - 2008/09/16 18:58:01 ET #Table 'Gianfar IV' 6-max Seat #1 is the button #Seat 1: ZeKGB ($224 in chips) #Seat 2: quimboavida ($107.75 in chips) #Seat 3: tropical100 ($190 in chips) #Seat 4: jackhama33 ($54.95 in chips) #Seat 5: Olubanu ($196 in chips) #Seat 6: LSgambler ($205.35 in chips) #quimboavida: posts small blind $1 #tropical100: posts big blind $2 #*** HOLE CARDS *** #jackhama33: folds #Olubanu: folds #LSgambler: folds #ZeKGB: folds #quimboavida: calls $1 #tropical100: raises $5 to $7 #quimboavida: calls $5 #*** FLOP *** [3d Qs Kd] #quimboavida: bets $10 #tropical100: calls $10 #*** TURN *** [3d Qs Kd] [Ah] #quimboavida: checks #tropical100: checks #*** RIVER *** [3d Qs Kd Ah] [7c] #quimboavida: bets $30 #tropical100: folds #quimboavida collected $32.35 from pot #*** SUMMARY *** #Total pot $34 | Rake $1.65 #Board [3d Qs Kd Ah 7c] #Seat 1: ZeKGB (button) folded before Flop (didn't bet) #Seat 2: quimboavida (small blind) collected ($32.35) #Seat 3: tropical100 (big blind) folded on the River #Seat 4: jackhama33 folded before Flop (didn't bet) #Seat 5: Olubanu folded before Flop (didn't bet) #Seat 6: LSgambler folded before Flop (didn't bet) #PokerStars Game #25381215423: HORSE (Razz Limit, $0.10/$0.20) - 2009/02/26 15:20:19 ET #Table 'Natalie V' 8-max class PokerStars(HandHistoryConverter): # Static regexes re_GameInfo = re.compile('PokerStars Game #(?P[0-9]+):\s+(HORSE)? \(?(?PHold\'em|Razz|7 Card Stud) (?PNo Limit|Limit|Pot Limit),? \(?\$?(?P[.0-9]+)/\$?(?P[.0-9]+)\) - (?P.*$)', re.MULTILINE) re_SplitHands = re.compile('\n\n+') re_HandInfo = re.compile("^Table \'(?P[- a-zA-Z]+)\'(?P.+?$)?", re.MULTILINE) re_Button = re.compile('Seat #(?P
[ a-zA-Z]+) - \$?(?P[.0-9]+)/\$?(?P[.0-9]+) - (?P.*) - (?P
[0-9]+):(?P[0-9]+) ET - (?P[0-9]+)/(?P[0-9]+)/(?P[0-9]+)Table (?P
[ a-zA-Z]+)\nSeat (?P