Skip to content

Commit

Permalink
Added support for MPLPoker
Browse files Browse the repository at this point in the history
  • Loading branch information
ChazDazzle committed Oct 17, 2023
1 parent 5d7c55e commit 43868c7
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 3 deletions.
10 changes: 7 additions & 3 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|SupremaPoker)(?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|MPLPoker)(?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 @@ -164,15 +164,19 @@ class PokerStars(HandHistoryConverter):
\)
(?P<SITOUT>\sis\ssitting\sout)?""" % substitutions,
re.MULTILINE|re.VERBOSE)

#MPLPoker Hand #4227510401: Hold'em No Limit (₹50/₹100) - 2023/10/17 10:36:50 UTC
#Table 'NLH 50/100 #31'(1941947783) 6-max (Real Money) Seat #6 is the button

re_HandInfo = re.compile("""
^\s?Table\s(ID\s)?\'(?P<TABLE>.+?)\'\s
^\s?Table\s(ID\s)?\'(?P<TABLE>.+?)\'(\(\d+\))?\s
((?P<MAX>\d+)-[Mm]ax\s)?
(?P<PLAY>\(Play\sMoney\)\s)?
(\(Real\sMoney\)\s)?
(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|SupremaPoker)(\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|MPLPoker)(\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,41 @@
MPLPoker Hand #4227510401: Hold'em No Limit (₹50/₹100) - 2023/10/17 10:36:50 UTC
Table 'NLH 50/100 #31'(1941947783) 6-max (Real Money) Seat #6 is the button
Seat 1: Player0 (₹10,274.40 in chips)
Seat 2: Hero (₹10,000 in chips)
Seat 3: Player1 (₹9,433.91 in chips)
Seat 4: Player2 (₹7,313.75 in chips)
Seat 5: Player3 (₹23,639.03 in chips)
Seat 6: Player4 (₹9,600.18 in chips)
Player0: posts small blind ₹50
Hero: posts big blind ₹100
*** HOLE CARDS ***
Dealt to Hero [Ah 8d]
Player1: folds
Player2: folds
Player3: folds
Player4: raises ₹200 to ₹200
Player0: folds
Hero: calls ₹100
*** FLOP *** [6s 2c Jc]
Hero: checks
Player4: checks
*** TURN *** [6s 2c Jc] [Ad]
Hero: checks
Player4: bets ₹300
Hero: calls ₹300
*** RIVER *** [6s 2c Jc Ad] [Jh]
Hero: checks
Player4: checks
*** SHOW DOWN ***
Hero: shows [Ah 8d] (two pair, Aces and Jacks)
Player4: mucks hand
Hero collected ₹1,050 from pot
*** SUMMARY ***
Total pot ₹1,050 | Rake ₹53.76
Board [6s 2c Jc Ad Jh]
Seat 1: Player0 (small blind) folded before Flop
Seat 2: Hero (big blind) showed [Ah 8d] and won (₹1,050) with two pair, Aces and Jacks
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) mucked

0 comments on commit 43868c7

Please sign in to comment.