summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWolfgang Rohdewald <wolfgang@rohdewald.de>2015-11-27 10:28:45 (GMT)
committerWolfgang Rohdewald <wolfgang@rohdewald.de>2016-08-25 06:41:35 (GMT)
commitdf0fd9813019f6572c93fd3b708cb54378c0de1b (patch)
treeda3324093a7e842cc2103ca33d54d7490f1725a0
parente8ece754e8dec4f6c71aa60c7fb7652df947475f (diff)
Hand.__arrange uses newString() instead of mjStr
-rw-r--r--src/hand.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/hand.py b/src/hand.py
index f084a48..894c110 100644
--- a/src/hand.py
+++ b/src/hand.py
@@ -633,8 +633,8 @@ class Hand(object):
wonHands = []
lostHands = []
for mjRule, melds in self.__arrangements():
- _ = ' '.join(str(x) for x in sorted(
- chain(self.melds, melds, self.bonusMelds))) + ' ' + self.mjStr
+ _ = self.newString(chain(self.melds, melds, self.bonusMelds),
+ rest=None, lastMeld=None)
tryHand = Hand(self.player, _, prevHand=self)
if tryHand.won:
tryHand.mjRule = mjRule