Commit a427956e authored by Wolfgang Rohdewald's avatar Wolfgang Rohdewald
Browse files

Hand.__arrange(): if no winning arrangement is found, do not set hand.mjRule

parent 31eb5919
......@@ -628,7 +628,8 @@ class Hand(object):
# we prefer a won Hand even if a lost Hand might have a higher score
tryHands = wonHands if wonHands else lostHands
bestRule, bestVariant, _ = max(tryHands, key=lambda x: x[2])
self.mjRule = bestRule
if wonHands:
self.mjRule = bestRule
self.__rest = []
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment