Ensure both holecards are known (holdem) or all four (omaha) before
printing a 'shows hand' line : not ideal, but legacy importer chokes otherwise
This commit is contained in:
parent
cfbdff5159
commit
08dae30f1f
|
@ -504,6 +504,14 @@ Card ranks will be uppercased
|
||||||
if self.shown:
|
if self.shown:
|
||||||
print >>fh, _("*** SHOW DOWN ***")
|
print >>fh, _("*** SHOW DOWN ***")
|
||||||
for name in self.shown:
|
for name in self.shown:
|
||||||
|
# TODO: legacy importer can't handle only one holecard here, make sure there are 2 for holdem, 4 for omaha
|
||||||
|
# TOOD: If HoldHand subclass supports more than omahahi, omahahilo, holdem, add them here
|
||||||
|
numOfHoleCardsNeeded = None
|
||||||
|
if self.gametype['category'] in ('omahahi','omahahilo'):
|
||||||
|
numOfHoleCardsNeeded = 4
|
||||||
|
elif self.gametype['category'] in ('holdem'):
|
||||||
|
numOfHoleCardsNeeded = 2
|
||||||
|
if len(self.holecards[name]['PREFLOP']) == numOfHoleCardsNeeded:
|
||||||
print >>fh, _("%s shows [%s] (a hand...)" % (name, " ".join(self.holecards[name]['PREFLOP'])))
|
print >>fh, _("%s shows [%s] (a hand...)" % (name, " ".join(self.holecards[name]['PREFLOP'])))
|
||||||
|
|
||||||
# Current PS format has the lines:
|
# Current PS format has the lines:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user