addPlayerCards done - now need to print it

This commit is contained in:
Worros
2009-02-27 00:35:15 +09:00
parent 7f1fd2ca38
commit 6d862cff52
2 changed files with 22 additions and 6 deletions
+4 -4
View File
@@ -191,12 +191,12 @@ class FullTilt(HandHistoryConverter):
print hand.streets.group(street)
for player in m:
print player.groups()
#hand.hero = m.group('PNAME')
# "2c, qh" -> set(["2c","qc"])
# Also works with Omaha hands.
cards = player.group('CARDS')
if player.group('NEWCARD') != None:
print cards
cards = cards + " " + player.group('NEWCARD')
cards = set(cards.split(' '))
# hand.addHoleCards(cards, m.group('PNAME'))
hand.addPlayerCards(cards, player.group('PNAME'))
def readAction(self, hand, street):
m = self.re_Action.finditer(hand.streets.group(street))