summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWolfgang Rohdewald <wolfgang@rohdewald.de>2016-08-24 05:56:41 (GMT)
committerWolfgang Rohdewald <wolfgang@rohdewald.de>2016-08-24 11:47:06 (GMT)
commit9b0757c75d7866f4ac78a7298c3bc999d92ad633 (patch)
tree92fd87e9dfb0a3d04a7d7c45e02a81beff405f5f
parente99b35d2828c9fa6eb6d098916b9b2ba5b96cc45 (diff)
GatesOfHeaven.rearrange tried to do Tile("d1")
-rw-r--r--src/rulecode.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rulecode.py b/src/rulecode.py
index 207ec36..172e5eb 100644
--- a/src/rulecode.py
+++ b/src/rulecode.py
@@ -1065,7 +1065,7 @@ class GatesOfHeaven(StandardMahJongg):
def rearrange(hand, rest):
melds = []
- for suit in hand.suits:
+ for suit in hand.suits & set(Tile.colors):
for value in Tile.numbers:
tile = Tile(suit, value).concealed
if rest.count(tile) == 3 and tile.isTerminal: