HHC: fix missing second arg to determineGameType
This commit is contained in:
parent
98e0a096d2
commit
4f1697d390
|
@ -118,7 +118,7 @@ class HandHistoryConverter:
|
||||||
return
|
return
|
||||||
|
|
||||||
self.obs = self.obs.replace('\r\n', '\n')
|
self.obs = self.obs.replace('\r\n', '\n')
|
||||||
self.gametype = self.determineGameType()
|
self.gametype = self.determineGameType(self.obs)
|
||||||
if self.gametype == None:
|
if self.gametype == None:
|
||||||
print "Unknown game type from file, aborting on this file."
|
print "Unknown game type from file, aborting on this file."
|
||||||
return
|
return
|
||||||
|
@ -154,7 +154,7 @@ class HandHistoryConverter:
|
||||||
|
|
||||||
# Read actions in street order
|
# Read actions in street order
|
||||||
for street in hand.streetList: # go through them in order
|
for street in hand.streetList: # go through them in order
|
||||||
print "DEBUG: ", street
|
# print "DEBUG: ", street
|
||||||
if hand.streets.group(street) is not None:
|
if hand.streets.group(street) is not None:
|
||||||
if self.gametype[1] == "hold" or self.gametype[1] == "omahahi":
|
if self.gametype[1] == "hold" or self.gametype[1] == "omahahi":
|
||||||
self.readCommunityCards(hand, street) # read community cards
|
self.readCommunityCards(hand, street) # read community cards
|
||||||
|
@ -194,7 +194,7 @@ class HandHistoryConverter:
|
||||||
# type base limit
|
# type base limit
|
||||||
# [ ring, hold, nl , sb, bb ]
|
# [ ring, hold, nl , sb, bb ]
|
||||||
# Valid types specified in docs/tabledesign.html in Gametypes
|
# Valid types specified in docs/tabledesign.html in Gametypes
|
||||||
def determineGameType(self): abstract
|
def determineGameType(self, handText): abstract
|
||||||
|
|
||||||
# Read any of:
|
# Read any of:
|
||||||
# HID HandID
|
# HID HandID
|
||||||
|
|
|
@ -85,13 +85,13 @@ class Hud:
|
||||||
# do we need to add some sort of condition here for dealing with a request for a font that doesn't exist?
|
# do we need to add some sort of condition here for dealing with a request for a font that doesn't exist?
|
||||||
|
|
||||||
game_params = config.get_game_parameters(self.poker_game)
|
game_params = config.get_game_parameters(self.poker_game)
|
||||||
if not game_params['aux'] == "":
|
# if not game_params['aux'] == "":
|
||||||
for aux in game_params['aux']:
|
# for aux in game_params['aux']:
|
||||||
aux_params = config.get_aux_parameters(aux)
|
# aux_params = config.get_aux_parameters(aux)
|
||||||
my_import = importName(aux_params['module'], aux_params['class'])
|
# my_import = importName(aux_params['module'], aux_params['class'])
|
||||||
if my_import == None:
|
# if my_import == None:
|
||||||
continue
|
# continue
|
||||||
self.aux_windows.append(my_import(self, config, aux_params))
|
# self.aux_windows.append(my_import(self, config, aux_params))
|
||||||
|
|
||||||
def create_mw(self):
|
def create_mw(self):
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user