summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWolfgang Rohdewald <wolfgang@rohdewald.de>2015-11-18 08:57:42 (GMT)
committerWolfgang Rohdewald <wolfgang@rohdewald.de>2016-08-06 07:41:15 (GMT)
commit5caa47c7f5c3a687207b11feef2deb20f89df15c (patch)
treefea5e06810b846b0739b5952f54ef1c9df61d4dd
parent1894caaa2c0b60492783c56ed1070ead0702f6d8 (diff)
Fix a small copy&paste bug in TripleKnitting
-rw-r--r--src/rulecode.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rulecode.py b/src/rulecode.py
index 65f4dda..878ef07 100644
--- a/src/rulecode.py
+++ b/src/rulecode.py
@@ -638,7 +638,7 @@ class TripleKnitting(RuleCode):
def shouldTry(cls, hand, maxMissing=3):
if hand.declaredMelds:
return False
- tripleWanted = 7 - maxMissing // 3 # count triples
+ tripleWanted = 4 - maxMissing // 3 # count triples
tripleCount = len(cls.findTriples(hand)[0])
return tripleCount >= tripleWanted