summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWolfgang Rohdewald <wolfgang@rohdewald.de>2015-11-18 15:39:53 (GMT)
committerWolfgang Rohdewald <wolfgang@rohdewald.de>2016-08-25 06:43:14 (GMT)
commit8a5e679af85ac07d89054656821c5744efb1829b (patch)
tree884c13fdad2c081d7b382360233cdda3aecf2283
parentd7e7930d4a56a33e155eec0e2d117cc2e1f283b5 (diff)
NineGates: last tile may also be 1 or 9
-rw-r--r--src/rulecode.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rulecode.py b/src/rulecode.py
index 6dda217..7e1404d 100644
--- a/src/rulecode.py
+++ b/src/rulecode.py
@@ -1100,7 +1100,7 @@ class NineGates(GatesOfHeaven):
if not cls.maybeCallingOrWon(hand):
return False
values = hand.values
- if len(set(values)) < 9 or values.count(1) != 3 or values.count(9) != 3:
+ if len(set(values)) < 9 or values.count(1) < 3 or values.count(9) < 3:
return False
values = list(values[3:-3])
for value in Tile.minors: