Get stud shown cards right in writeHand().

This commit is contained in:
Ray 2009-07-15 22:11:23 -04:00
parent 12db3c0d55
commit 3253d5a234

View File

@ -1336,6 +1336,14 @@ Add a complete on [street] by [player] to [amountTo]
holecards = [] holecards = []
for street in self.holeStreets: for street in self.holeStreets:
if self.holecards[street].has_key(player): if self.holecards[street].has_key(player):
if street == 'THIRD':
holecards = holecards + self.holecards[street][player][1] + self.holecards[street][player][0]
elif street == 'SEVENTH':
if player == self.hero:
holecards = holecards + self.holecards[street][player][0]
else:
holecards = holecards + self.holecards[street][player][1]
else:
holecards = holecards + self.holecards[street][player][0] holecards = holecards + self.holecards[street][player][0]
return " ".join(holecards) return " ".join(holecards)