summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWolfgang Rohdewald <wolfgang@rohdewald.de>2015-11-18 09:19:41 (GMT)
committerWolfgang Rohdewald <wolfgang@rohdewald.de>2016-08-25 06:43:13 (GMT)
commit39d483567bc45ae278a265c6449f6b018b4d3807 (patch)
tree94b2505f7c8bb52f84f13831183e0185049b0303
parentccd24eb84fd0fbee46427d6caf65d0304d0593aa (diff)
separate classes GatesOfHeaven and NineGates
-rw-r--r--src/predefined.py2
-rw-r--r--src/rulecode.py3
2 files changed, 4 insertions, 1 deletions
diff --git a/src/predefined.py b/src/predefined.py
index b75ff0b..411ed31 100644
--- a/src/predefined.py
+++ b/src/predefined.py
@@ -233,7 +233,7 @@ class ClassicalChinese(PredefinedRuleset):
points=20)
# option internal makes it not show up in the ruleset editor
self.mjRules.createRule(
- 'Nine Gates', 'FGatesOfHeaven', limits=1,
+ 'Nine Gates', 'FNineGates', limits=1,
description=m18n(
'A concealed hand in one color 1112345678999 plus last tile of this suit (from wall or discarded)'))
self.mjRules.createRule(
diff --git a/src/rulecode.py b/src/rulecode.py
index 4d61d73..6b69588 100644
--- a/src/rulecode.py
+++ b/src/rulecode.py
@@ -1095,6 +1095,9 @@ class GatesOfHeaven(StandardMahJongg):
yield tuple(melds), tuple(rest)
+class NineGates(GatesOfHeaven):
+ pass
+
class ThirteenOrphans(MJRule):
def computeLastMelds(hand):