Skip to content

Commit

Permalink
Added support for converted SupremaPoker hands
Browse files Browse the repository at this point in the history
  • Loading branch information
ChazDazzle committed Oct 6, 2023
1 parent 6d20ec0 commit 8a58c05
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyfpdb/PokerStarsToFpdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ class PokerStars(HandHistoryConverter):

# Static regexes
re_GameInfo = re.compile(u"""
(?P<SITE>PokerStars|POKERSTARS|Hive\sPoker|Full\sTilt|PokerMaster|Run\sIt\sOnce\sPoker|BetOnline|PokerBros)(?P<TITLE>\sGame|\sHand|\sHome\sGame|\sHome\sGame\sHand|Game|\s(Zoom|Rush)\sHand|\sGAME)\s\#(?P<HID>[0-9]+):\s+
(?P<SITE>PokerStars|POKERSTARS|Hive\sPoker|Full\sTilt|PokerMaster|Run\sIt\sOnce\sPoker|BetOnline|PokerBros|SupremaPoker)(?P<TITLE>\sGame|\sHand|\sHome\sGame|\sHome\sGame\sHand|Game|\s(Zoom|Rush)\sHand|\sGAME)\s\#(?P<HID>[0-9]+):\s+
(\{.*\}\s+)?((?P<TOUR>((Zoom|Rush)\s)?(Tournament|TOURNAMENT))\s\# # open paren of tournament info
(?P<TOURNO>\d+),\s(Table\s\#(?P<HIVETABLE>\d+),\s)?
# here's how I plan to use LS
Expand Down Expand Up @@ -172,7 +172,7 @@ class PokerStars(HandHistoryConverter):
(Seat\s\#(?P<BUTTON>\d+)\sis\sthe\sbutton)?""",
re.MULTILINE|re.VERBOSE)

re_Identify = re.compile(u'(PokerStars|POKERSTARS|Hive\sPoker|Full\sTilt|PokerMaster|Run\sIt\sOnce\sPoker|BetOnline|PokerBros)(\sGame|\sHand|\sHome\sGame|\sHome\sGame\sHand|Game|\s(Zoom|Rush)\sHand|\sGAME)\s\#\d+:')
re_Identify = re.compile(u'(PokerStars|POKERSTARS|Hive\sPoker|Full\sTilt|PokerMaster|Run\sIt\sOnce\sPoker|BetOnline|PokerBros|SupremaPoker)(\sGame|\sHand|\sHome\sGame|\sHome\sGame\sHand|Game|\s(Zoom|Rush)\sHand|\sGAME)\s\#\d+:')
re_SplitHands = re.compile('(?:\s?\n){2,}')
re_TailSplitHands = re.compile('(\n\n\n+)')
re_Button = re.compile('Seat #(?P<BUTTON>\d+) is the button', re.MULTILINE)
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
SupremaPoker Hand #1696464776829: Tournament #1462518504307, $63+$7 Hold'em No Limit - Level X (700/1400) - 2023/10/05 00:12:56 UTC
Table '1462518504307 60' 8-max Seat #6 is the button
Seat 1: Hero (118054 in chips)
Seat 2: Player0 (160335 in chips)
Seat 3: Player1 (79374 in chips)
Seat 4: Player2 (58112 in chips)
Seat 5: Player3 (139800 in chips)
Seat 6: Player4 (37836 in chips)
Seat 7: Player5 (155628 in chips)
Seat 8: Player6 (56710 in chips)
Player5: posts the ante 150
Player6: posts the ante 150
Hero: posts the ante 150
Player0: posts the ante 150
Player1: posts the ante 150
Player2: posts the ante 150
Player3: posts the ante 150
Player4: posts the ante 150
Player5: posts small blind 700
Player6: posts big blind 1400
*** HOLE CARDS ***
Dealt to Hero [Qh Kh]
Hero: raises 1400 to 2800
Player0: folds
Player1: folds
Player2: folds
Player3: folds
Player4: folds
Player5: calls 2100
Player6: folds
*** FLOP *** [9s 3h Ks]
Player5: checks
Hero: bets 3500
Player5: calls 3500
*** TURN *** [9s 3h Ks] [2s]
Player5: bets 10133
Hero: calls 10133
*** RIVER *** [9s 3h Ks 2s] [7d]
Player5: bets 139045 and is all-in
Hero: folds
Uncalled bet (139045) returned to Player5
*** SHOW DOWN ***
Player5: doesn't show hand
Player5 collected 35466 from pot
*** SUMMARY ***
Total pot 35466 | Rake 0
Board [9s 3h Ks 2s 7d]
Seat 1: Hero folded on the River
Seat 2: Player0 folded before Flop (didn't bet)
Seat 3: Player1 folded before Flop (didn't bet)
Seat 4: Player2 folded before Flop (didn't bet)
Seat 5: Player3 folded before Flop (didn't bet)
Seat 6: Player4 (button) folded before Flop (didn't bet)
Seat 7: Player5 (small blind) collected (35466)
Seat 8: Player6 (big blind) folded before Flop

0 comments on commit 8a58c05

Please sign in to comment.