From 3253d5a234a4f68e8b0de7ef63ad04f1bc1f84b6 Mon Sep 17 00:00:00 2001 From: Ray Date: Wed, 15 Jul 2009 22:11:23 -0400 Subject: [PATCH] Get stud shown cards right in writeHand(). --- pyfpdb/Hand.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/pyfpdb/Hand.py b/pyfpdb/Hand.py index c97e88f1..95fd74a5 100644 --- a/pyfpdb/Hand.py +++ b/pyfpdb/Hand.py @@ -1336,7 +1336,15 @@ Add a complete on [street] by [player] to [amountTo] holecards = [] for street in self.holeStreets: if self.holecards[street].has_key(player): - holecards = holecards + self.holecards[street][player][0] + 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] return " ".join(holecards) class Pot(object):