summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWolfgang Rohdewald <wolfgang@rohdewald.de>2015-11-27 07:44:46 (GMT)
committerWolfgang Rohdewald <wolfgang@rohdewald.de>2016-08-25 06:41:36 (GMT)
commitd0336c04dfe28216753ca52911ab7ed4cf804a45 (patch)
tree9e20a9ef65f8a7c664303be7c3c43c9fec892d91
parent65d953c5cdf85b5fbaa1a8939d0da96aa7051fef (diff)
Hand: change 2 docstrings
-rw-r--r--src/hand.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/hand.py b/src/hand.py
index 5083925..2c1d865 100644
--- a/src/hand.py
+++ b/src/hand.py
@@ -572,7 +572,8 @@ class Hand(object):
return result
def __arrangements(self):
- """find all legal arrangements"""
+ """find all legal arrangements.
+ Returns a list of tuples with the mjRule and a list of concealed melds"""
self.__rest.sort()
result = []
stdMJ = self.ruleset.standardMJRule
@@ -598,9 +599,7 @@ class Hand(object):
return result
def __arrange(self):
- """work hard to always return the variant with the highest Mah Jongg value.
- Adds melds to self.melds. A rest will be rearranged by
- standard rules."""
+ """work hard to always return the variant with the highest Mah Jongg value."""
if any(not x.isKnown for x in self.__rest):
melds, rest = divmod(len(self.__rest), 3)
self.melds.extend([Tile.unknown.pung] * melds)